修改配置文件

develoop
喻忠伟 2 weeks ago
parent 1069809d06
commit 8a346ed814
  1. 2
      .env.development
  2. 1
      .env.production
  3. 9
      src/Layout/tabbar/index.vue

@ -3,4 +3,4 @@ NODE_ENV = 'development'
VITE_APP_TITLE = '教学一体化平台'
VITE_APP_BASE_API = 'http://127.0.0.1:8080'
# VITE_APP_BASE_API = 'http://10.100.200.177:8080'
VITE_ADMIN_URL = 'http://127.0.0.1:8080'
VITE_ADMIN_URL = '182.92.169.222/portalhome'

@ -2,3 +2,4 @@ NODE_ENV = 'production'
VITE_APP_TITLE = '教学一体化平台'
# VITE_APP_BASE_API = '/api'
VITE_ADMIN_URL = 'http://127.0.0.1:8080'
VITE_ADMIN_URL = 'http://127.0.0.1/portalhome'

@ -97,9 +97,18 @@ userGetInfoService(userStore.token).then((res) => {
})
function skip() {
// location.replace(url)
const adminUrl = import.meta.env.VITE_ADMIN_URL;
if (adminUrl) {
//
//
location.href = adminUrl;
//
// window.open(adminUrl, '_blank');
window.open(import.meta.env.VITE_ADMIN_URL)
}
}
// 退
function logout() {
isLogin.value = false

Loading…
Cancel
Save