后台端口修改

This commit is contained in:
zsvg
2021-12-11 18:00:50 +08:00
parent f38f9589c0
commit a06680cb12
4 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -6,15 +6,15 @@ VITE_PUBLIC_PATH = /
# Cross-domain proxy, you can configure multiple
# Please note that no line breaks
VITE_PROXY = [["/basic-api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
VITE_PROXY=[["/upload","http://localhost:5000/gen/att/up"]]
#VITE_PROXY = [["/basic-api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
VITE_PROXY=[["/upload","http://localhost:5301/gen/att/up"]]
# Delete console
VITE_DROP_CONSOLE = false
# Basic interface address SPA
#VITE_GLOB_API_URL=/basic-api
VITE_GLOB_API_URL=http://localhost:5000
VITE_GLOB_API_URL=http://localhost:5301
# File upload address, optional
+5 -2
View File
@@ -16,11 +16,14 @@ VITE_BUILD_COMPRESS = 'none'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# Basic interface address SPA
VITE_GLOB_API_URL=/basic-api
#VITE_GLOB_API_URL=/basic-api
VITE_GLOB_API_URL=http://localhost:5301
# File upload address, optional
# It can be forwarded by nginx or write the actual address directly
VITE_GLOB_UPLOAD_URL=/upload
#VITE_GLOB_UPLOAD_URL=/upload
VITE_GLOB_UPLOAD_URL=http://localhost:5301/gen/att/up
#VITE_PROXY=[["/upload","http://localhost:5301/gen/att/up"]]
# Interface prefix
VITE_GLOB_API_URL_PREFIX=
+2 -1
View File
@@ -2,7 +2,8 @@ export enum PageEnum {
// basic login path
BASE_LOGIN = '/login',
// basic home path
BASE_HOME = '/dashboard',
// BASE_HOME = '/dashboard',
BASE_HOME = '/wf/demo1',
// error page path
ERROR_PAGE = '/exception',
// error log page path
+3 -1
View File
@@ -23,7 +23,7 @@
v-model:file-list="fileList"
name="file"
:multiple="false"
action="/upload"
:action="uploadUrl"
@change="handleChange">
<Button>
<UploadOutlined></UploadOutlined>
@@ -68,6 +68,8 @@ import {Upload} from 'ant-design-vue';
import {Button} from 'ant-design-vue';
import { useGlobSetting } from '/@/hooks/setting';
const {uploadUrl} = useGlobSetting();
const fileList = ref([]);
interface FileItem {