新增前端vue
This commit is contained in:
@@ -215,16 +215,15 @@ export const useUserStore = defineStore('app-user', {
|
||||
* @description: Confirm before logging out
|
||||
*/
|
||||
async confirmLoginOut() {
|
||||
// const { createConfirm } = useMessage();
|
||||
// const { t } = useI18n();
|
||||
// createConfirm({
|
||||
// iconType: 'warning',
|
||||
// title: () => h('span', t('sys.app.logoutTip')),
|
||||
// content: () => h('span', t('sys.app.logoutMessage')),
|
||||
// onOk: async () => {
|
||||
await this.logout(true);
|
||||
// },
|
||||
// });
|
||||
const { createConfirm } = useMessage();
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '温馨提示',
|
||||
content: '确认要退出系统吗?',
|
||||
onOk: async () => {
|
||||
await this.logout(true);
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user