forked from gitee/vben-app
后台端口修改
This commit is contained in:
+3
-3
@@ -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
@@ -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,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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user