fix: bug
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.92:9786'
|
||||
# 于嘉文
|
||||
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.143:9604'
|
||||
# 孙宇
|
||||
VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.139:9604'
|
||||
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.139:9604'
|
||||
# 付丙鑫
|
||||
# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.145:9602'
|
||||
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@ export const get_base_url = (url = '') => {
|
||||
// #endif
|
||||
} else { // 其他环境,包括生产环境,sit环境,uat环境
|
||||
return ENV.VITE_APP_BASE_API_Url
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export const goto_login_fun = (from = 'http') => {
|
||||
if (page_route === 'pages/login/login') return;
|
||||
common.hideLoading()
|
||||
common.show('未登录', '现在去登录', false).then(() => {
|
||||
common.navigateTo('/pages/login/login')
|
||||
// common.navigateTo('/pages/login/login')
|
||||
if (from === 'socket' && page_route !== '') {
|
||||
common.redirectTo('/pages/login/login?path=' + page_route)
|
||||
} else {
|
||||
|
||||
@@ -671,7 +671,7 @@ const initsocketTask = () => {
|
||||
}
|
||||
} else {
|
||||
// if(['0005', 'QQ0005'].includes(res.rtnCode)) {
|
||||
// goto_login_fun();
|
||||
// goto_login_fun('socket');
|
||||
// }
|
||||
}
|
||||
})
|
||||
@@ -722,6 +722,7 @@ const changeAppHeightBottom = height => {
|
||||
// #endif
|
||||
}
|
||||
onHide(() => {
|
||||
console.log('onHide')
|
||||
//#ifdef APP-PLUS
|
||||
uni.offKeyboardHeightChange(setHeight)
|
||||
// #endif
|
||||
@@ -733,6 +734,7 @@ onHide(() => {
|
||||
// }).finally(() => {})
|
||||
})
|
||||
onShow(() => {
|
||||
console.log('onShow')
|
||||
//#ifdef APP-PLUS
|
||||
uni.onKeyboardHeightChange(setHeight)
|
||||
// #endif
|
||||
@@ -742,6 +744,7 @@ onShow(() => {
|
||||
})
|
||||
const watchFlag = ref(1)
|
||||
onUnload(() => {
|
||||
console.log('onUnload')
|
||||
socketStore.closeSocket()
|
||||
changePlayItemId('')
|
||||
console.log(typeof teacherVoiceObj);
|
||||
|
||||
Reference in New Issue
Block a user