@@ -82,6 +82,7 @@ export const useAppStore = defineStore({
},
setTitle(title: string): void {
this.title = title;
+ localStorage.setItem('title', title);
setBeforeMiniInfo(state: BeforeMiniState): void {
this.beforeMiniInfo = state;
@@ -188,10 +188,14 @@
createMessage.warning('用户不能为空')
return
}
+ if(userinfo.value.platformId == active.value.platformId){
+ createMessage.warning('该用户已存在此平台。')
+ return
+ }
if(active.value.platformId){
createConfirm({
title: '提示',
- content: '该用户已存在此平台。',
+ content: '该用户已属其他平台,确定为其更换平台?',
onOk: async () => {
handleOk()