修改配置文件

develoop
喻忠伟 2 weeks ago
parent 1069809d06
commit 8a346ed814
  1. 2
      .env.development
  2. 3
      .env.production
  3. 11
      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'

@ -1,4 +1,5 @@
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:8080'
VITE_ADMIN_URL = 'http://127.0.0.1/portalhome'

@ -97,7 +97,16 @@ userGetInfoService(userStore.token).then((res) => {
})
function skip() {
// location.replace(url)
window.open(import.meta.env.VITE_ADMIN_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)
}
}
// 退

Loading…
Cancel
Save