优化
This commit is contained in:
@@ -190,12 +190,11 @@
|
||||
import topNavigation from "../../components/topNavigation/topNavigation";
|
||||
import Advertisement from "../../components/Advertisement/Advertisement";
|
||||
import tabBar from "../../components/tabBar/tabBar";
|
||||
import TUIlogin from "../../components/TUILogin.js";
|
||||
import request from "../../components/request.js";
|
||||
import formatDate from "../../components/formatDate.js";
|
||||
import { useCounterStore } from "@/stores/counter";
|
||||
import optionsArray from "../../components/NationalDictionary.js";
|
||||
import { TUILogin } from "@tencentcloud/tui-core";
|
||||
import { goEasylogin } from "../../components/goEasyTool/tool.js";
|
||||
|
||||
const counter = useCounterStore();
|
||||
export default {
|
||||
@@ -256,20 +255,9 @@ export default {
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.info = res.data;
|
||||
console.log("userinfo", this.info);
|
||||
counter.$patch({ myitem: this.info });
|
||||
uni.getStorage({
|
||||
key: "myuserSig",
|
||||
success: (res) => {
|
||||
this.myuserSig = res.data;
|
||||
uni.getStorage({
|
||||
key: "chatInfo",
|
||||
success: (res) => {
|
||||
this.chatInfo = res.data;
|
||||
TUIlogin(this.chatInfo.appId, this.info.id, this.myuserSig.userSig);
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
goEasylogin(this.$goeasy, String(this.info.id), this.info.headerIcon, this.info.nickName)//登录IM
|
||||
},
|
||||
});
|
||||
// setTimeout(() => {
|
||||
@@ -283,7 +271,6 @@ export default {
|
||||
const now = Date.now();
|
||||
if (now - lastCleanTime < 7 * 24 * 3600 * 1000) return; // 7 days
|
||||
uni.clearStorage();
|
||||
TUILogin.logout();
|
||||
uni.setStorageSync("last_clean_time", now);
|
||||
},
|
||||
//关闭弹窗(取消)
|
||||
|
||||
Reference in New Issue
Block a user