Compare commits

..

No commits in common. "092a66654ab959baead8fe38ba4257773396f825" and "fa23e953a9b80efe3e7d5a7f2443b6a56c244d05" have entirely different histories.

3 changed files with 0 additions and 15 deletions

View File

@ -1,8 +0,0 @@
## 开发环境
# 变量必须以 VITE_ 为前缀才能暴露给外部读取
NODE_ENV='development'
VITE_APP_TITLE = ''
VITE_APP_PORT = 3000
VITE_API_BASE_URL = '/api'

View File

@ -1,6 +0,0 @@
## 生产环境
NODE_ENV='production'
VITE_APP_TITLE = 'NewFrameWork2023-WEB'
VITE_APP_PORT = 3000
VITE_API_BASE_URL = ''

View File

@ -2,7 +2,6 @@ import axios from 'axios'
import { ElMessage, ElMessageBox } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus'
import { useUserStore } from '@/store/user' import { useUserStore } from '@/store/user'
import router from '@/router' import router from '@/router'
console.log( import.meta.env.VITE_API_BASE_URL)
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({