微信小程序发布试用版本
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
<script>
|
||||
import mixin from '@/uni_modules/uni-id-pages/common/login-page.mixin.js';
|
||||
import { mutations } from '@/uni_modules/uni-id-pages/common/store.js'
|
||||
import { mutations } from '@/common/store.js'
|
||||
import { getApiUrl } from '@/common/config.js'
|
||||
export default {
|
||||
mixins: [mixin],
|
||||
@@ -194,10 +194,20 @@
|
||||
duration: 800
|
||||
})
|
||||
|
||||
// 登录成功后跳转到 tabBar 首页(接待页)
|
||||
// 更新全局角色信息
|
||||
try {
|
||||
const app = getApp();
|
||||
if (app && app.setGlobalRoleInfo) {
|
||||
app.setGlobalRoleInfo();
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('[Login] Failed to update global role info:', e);
|
||||
}
|
||||
|
||||
// 登录成功后跳转到首页(接待页面)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/reception/reception'
|
||||
url: '/pages/furniture_reception/furniture_reception'
|
||||
})
|
||||
}, 300)
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user