|
@@ -2,6 +2,7 @@ import { defineStore } from "pinia";
|
|
import { useStores } from "@/store/modules/index";
|
|
import { useStores } from "@/store/modules/index";
|
|
import { storage, storageSystem } from "@/utils/storage";
|
|
import { storage, storageSystem } from "@/utils/storage";
|
|
import { getToken, setToken, removeToken } from "@/utils/auth";
|
|
import { getToken, setToken, removeToken } from "@/utils/auth";
|
|
|
|
+import wx from 'weixin-js-sdk'
|
|
// 接口引用
|
|
// 接口引用
|
|
import { uploadAvatar, updateUserProfile } from "@/api/system/user";
|
|
import { uploadAvatar, updateUserProfile } from "@/api/system/user";
|
|
import { baseAppInfoApi } from "@/api/common/index";
|
|
import { baseAppInfoApi } from "@/api/common/index";
|
|
@@ -359,10 +360,20 @@ const settingStores = defineStore("storage-setting", {
|
|
const useStore = useStores();
|
|
const useStore = useStores();
|
|
modal.confirm("确定注销并退出系统吗?").then(() => {
|
|
modal.confirm("确定注销并退出系统吗?").then(() => {
|
|
useStore.LogOut().then(() => {
|
|
useStore.LogOut().then(() => {
|
|
- tab.reLaunch("/pages/index");
|
|
|
|
|
|
+
|
|
|
|
+ if(localStorage.getItem("type")) {
|
|
|
|
+ console.log('内嵌h5')
|
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
|
+ appId:'wxf5ad8734295d43f8',
|
|
|
|
+ url:'/pages/login?type=logout'
|
|
|
|
+ })
|
|
|
|
+ } else{
|
|
|
|
+ tab.reLaunch("/pages/index");
|
|
|
|
+ }
|
|
|
|
+
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- },
|
|
|
|
|
|
+ },
|
|
/**
|
|
/**
|
|
* @初始化默认主题
|
|
* @初始化默认主题
|
|
*/
|
|
*/
|