优化
This commit is contained in:
@@ -25,6 +25,7 @@ import request from "../../components/request.js";
|
||||
import postFile from "../../components/postFile.js";
|
||||
import generateFileName from "../../components/generateFileName.js";
|
||||
import { useCounterStore } from "@/stores/counter";
|
||||
import { goEasylogin } from "../../components/goEasyTool/tool.js";
|
||||
const counter = useCounterStore();
|
||||
|
||||
export default {
|
||||
@@ -48,12 +49,6 @@ export default {
|
||||
this.id = res.data.id;
|
||||
},
|
||||
});
|
||||
uni.getStorage({
|
||||
key: "userSig",
|
||||
success: (res) => {
|
||||
this.userSig = res.data;
|
||||
},
|
||||
});
|
||||
uni.getStorage({
|
||||
key: "lastPage",
|
||||
success: (res) => {
|
||||
@@ -107,7 +102,6 @@ export default {
|
||||
headerIcon: this.Filename,
|
||||
nickName: this.name,
|
||||
code,
|
||||
usersig: this.userSig.userSig,
|
||||
},
|
||||
userInfo: false,
|
||||
}).then((res) => {
|
||||
@@ -117,6 +111,7 @@ export default {
|
||||
icon: "success",
|
||||
});
|
||||
uni.setStorageSync("userinfo", res.data.info);
|
||||
goEasylogin(this.$goeasy,String(res.data.info.id),this.picture,this.name);
|
||||
counter.$patch({ myitem: res.data.info });
|
||||
uni.hideLoading();
|
||||
//```````````````````````````````````````````````````````````````````````登录成功后跳转回原页面 或 首页
|
||||
|
||||
Reference in New Issue
Block a user