修复通过openId切换教师时,首页数据没更新的问题,判断完了openId之后,使用reLaunch加载页面
This commit is contained in:
parent
33c3901ee9
commit
8a6cfd58c9
@ -57,7 +57,7 @@ async function forceRefreshPermission(changeTime?: string): Promise<void> {
|
|||||||
function goByJs(js: any) {
|
function goByJs(js: any) {
|
||||||
if (js.confirmStatus == "A") {
|
if (js.confirmStatus == "A") {
|
||||||
// 跳转到自助服务首页
|
// 跳转到自助服务首页
|
||||||
uni.switchTab({
|
uni.reLaunch({
|
||||||
url: "/pages/base/service/index",
|
url: "/pages/base/service/index",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -170,7 +170,6 @@ export const useUserStore = defineStore({
|
|||||||
afterLoginAction(value: any) {
|
afterLoginAction(value: any) {
|
||||||
console.log("=== afterLoginAction 开始 ===");
|
console.log("=== afterLoginAction 开始 ===");
|
||||||
console.log("用户数据:", value);
|
console.log("用户数据:", value);
|
||||||
|
|
||||||
this.setUser(value);
|
this.setUser(value);
|
||||||
this.setJs(value.js);
|
this.setJs(value.js);
|
||||||
if (value[AUTH_KEY]) {
|
if (value[AUTH_KEY]) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user