diff --git a/activitylink/src/views/zhongchou/gift/index.vue b/activitylink/src/views/zhongchou/gift/index.vue index 829fa1a..a9ddfa5 100644 --- a/activitylink/src/views/zhongchou/gift/index.vue +++ b/activitylink/src/views/zhongchou/gift/index.vue @@ -143,7 +143,11 @@ const editForm = ref({ gradeId: '', imageUrl: null }) -const uploadUrl = '/hljw/api/aws/upload'; +// const uploadUrl = 'https://api.homilychart.com/hljw/api/aws/upload'; //生产 +const uploadUrl = 'http://39.101.133.168:8828/hljw/api/aws/upload'; //测试 +// const uploadUrl = '/hljw/api/aws/upload' +// const uploadUrl = 'https://39.101.133.168:8828/hljw/api/aws/upload' +// const uploadUrl = '/api/upload/upload' const formRef = ref(null) const uploadRef = ref(null) diff --git a/activitylink/src/views/zhongchou/index.vue b/activitylink/src/views/zhongchou/index.vue index 360daca..bde9f5c 100644 --- a/activitylink/src/views/zhongchou/index.vue +++ b/activitylink/src/views/zhongchou/index.vue @@ -9,6 +9,7 @@ import { User, HelpFilled } from '@element-plus/icons-vue' +import { ElMessageBox, ElMessage } from 'element-plus'; import { useRouter } from 'vue-router' const router = useRouter() const handleOpen = (key, keyPath) => { @@ -18,7 +19,19 @@ const handleClose = (key, keyPath) => { // console.log('菜单关闭:', key, keyPath) } - +const handleLogout = () => { + ElMessageBox.confirm('确定要退出登录吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + // 点击确定,跳转到登录页 + router.push('/homePage'); + }).catch(() => { + // 点击取消,不做任何操作 + ElMessage.info('已取消退出'); + }); +};