优化页面
This commit is contained in:
@@ -3,6 +3,8 @@ const common_vendor = require("../../common/vendor.js");
|
||||
const components_request = require("../../components/request.js");
|
||||
const components_debug_GenerateTestUserSig = require("../../components/debug/GenerateTestUserSig.js");
|
||||
const components_TUILogin = require("../../components/TUILogin.js");
|
||||
const stores_counter = require("../../stores/counter.js");
|
||||
const counter = stores_counter.useCounterStore();
|
||||
const _sfc_main = {
|
||||
inject: ["$global"],
|
||||
data() {
|
||||
@@ -25,7 +27,7 @@ const _sfc_main = {
|
||||
key: "lastPage",
|
||||
success: (res) => {
|
||||
this.lastPage = "/" + res.data;
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:38", this.lastPage);
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:40", this.lastPage);
|
||||
},
|
||||
fail: () => {
|
||||
this.lastPage = "/pages/Home/Home";
|
||||
@@ -48,7 +50,7 @@ const _sfc_main = {
|
||||
userInfo: false
|
||||
});
|
||||
this.info = res;
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:62", "登录信息", this.info);
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:64", "登录信息", this.info);
|
||||
const sdkAppID = Number(this.info.data.chatInfo.appId);
|
||||
const userID = "administrator";
|
||||
this.userSig = components_debug_GenerateTestUserSig.genTestUserSig({
|
||||
@@ -61,11 +63,12 @@ const _sfc_main = {
|
||||
SECRETKEY: this.info.data.chatInfo.appKey,
|
||||
userID: String(res.data.info.id)
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:75", "userSig", this.myuserSig.userSig);
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:77", "userSig", this.myuserSig.userSig);
|
||||
common_vendor.index.setStorageSync("myuserSig", this.myuserSig);
|
||||
common_vendor.index.setStorageSync("chatInfo", this.info.data.chatInfo);
|
||||
common_vendor.index.setStorageSync("userSig", this.userSig);
|
||||
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
|
||||
counter.$patch({ myitem: this.info.data.info });
|
||||
if (this.info.code === 200) {
|
||||
if (this.info.data.newAccount) {
|
||||
common_vendor.index.reLaunch({
|
||||
@@ -77,7 +80,7 @@ const _sfc_main = {
|
||||
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
|
||||
components_TUILogin.TUIlogin(this.info.data.chatInfo.appId, this.info.data.info.id, this.myuserSig.userSig);
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:92", "跳的地址", this.lastPage);
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:95", "跳的地址", this.lastPage);
|
||||
common_vendor.index.reLaunch({
|
||||
url: this.lastPage
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user