@@ -1,8 +1,8 @@
# port 端口号
-VITE_PORT = 8080
-VITE_API_URL = 'http://dvadmin3api.django.icu:8001'
+VITE_PORT=8082
+VITE_API_URL='http://dvadmin3api.django.icu:8001'
# open 运行 npm run dev 时自动打开浏览器
-VITE_OPEN = false
+VITE_OPEN=false
# public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可
-VITE_PUBLIC_PATH = /
+VITE_PUBLIC_PATH=/
@@ -1,11 +1,11 @@
# 本地环境
-ENV = 'development'
+ENV='development'
# 本地环境接口地址
# VITE_API_URL = 'http://127.0.0.1:8000'
-VITE_API_URL = 'http://192.168.1.225/'
+VITE_API_URL='http://192.168.1.225:9090/'
# VITE_API_URL = 'http://192.168.1.22:8080/'
# VITE_API_URL = 'http://amzads.zositechc.cn'
# 是否启用按钮权限
-VITE_PM_ENABLED = true
+VITE_PM_ENABLED=true
@@ -1,11 +1,12 @@
# 线上环境
-ENV = 'local_prod'
+ENV='local_prod'
# 线上环境接口地址
-VITE_API_URL = '/'
+VITE_API_URL='/'
-VITE_PUBLIC_PATH = /web/
+VITE_PUBLIC_PATH=/web/
# dist目录
-VITE_DIST_PATH =../backend/templates/web/
+#VITE_DIST_PATH=../backend/templates/web/
+VITE_DIST_PATH=../dist
-ENV = 'production'
+ENV='production'
-VITE_API_URL = '/api' # docker-compose部署不需要修改,nginx容器自动代理了这个地址
+VITE_API_URL='/api' # docker-compose部署不需要修改,nginx容器自动代理了这个地址
@@ -60,6 +60,7 @@ app.use(pinia)
// .use(ElementPlus, { i18n: i18n.global.t })
.use(i18n)
.use(VueGridLayout)
+ // @ts-ignore
.use(fastCrud)
.mount('#app');
@@ -53,7 +53,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
server: {
host: '0.0.0.0',
port: env.VITE_PORT as unknown as number,
- open: true,
+ open: false,
hmr: true,
proxy: {
'/gitee': {