fix(projects): 去除从环境文件引入端口号导致的错误
This commit is contained in:
parent
eebb753884
commit
2d6d179d66
2
.env
2
.env
@ -6,7 +6,5 @@ VITE_APP_TITLE=Soybean管理系统
|
|||||||
|
|
||||||
VITE_APP_DESC=SoybeanAdmin是一个中后台管理系统模版
|
VITE_APP_DESC=SoybeanAdmin是一个中后台管理系统模版
|
||||||
|
|
||||||
VITE_SERVER_PORT=3200
|
|
||||||
|
|
||||||
# 权限路由模式: static | dynamic
|
# 权限路由模式: static | dynamic
|
||||||
VITE_AUTH_ROUTE_MODE=dynamic
|
VITE_AUTH_ROUTE_MODE=dynamic
|
||||||
|
25
components.d.ts
vendored
25
components.d.ts
vendored
@ -10,7 +10,32 @@ declare module 'vue' {
|
|||||||
DarkModeSwitch: typeof import('./src/components/common/DarkModeSwitch.vue')['default']
|
DarkModeSwitch: typeof import('./src/components/common/DarkModeSwitch.vue')['default']
|
||||||
GithubLink: typeof import('./src/components/custom/GithubLink.vue')['default']
|
GithubLink: typeof import('./src/components/custom/GithubLink.vue')['default']
|
||||||
HoverContainer: typeof import('./src/components/common/HoverContainer.vue')['default']
|
HoverContainer: typeof import('./src/components/common/HoverContainer.vue')['default']
|
||||||
|
IconAntDesignCloseOutlined: typeof import('~icons/ant-design/close-outlined')['default']
|
||||||
|
IconAntDesignEnterOutlined: typeof import('~icons/ant-design/enter-outlined')['default']
|
||||||
|
IconAntDesignSettingOutlined: typeof import('~icons/ant-design/setting-outlined')['default']
|
||||||
|
IconCustomAvatar: typeof import('~icons/custom/avatar')['default']
|
||||||
|
IconCustomBanner: typeof import('~icons/custom/banner')['default']
|
||||||
|
IconCustomLogo: typeof import('~icons/custom/logo')['default']
|
||||||
|
IconCustomLogoFill: typeof import('~icons/custom/logo-fill')['default']
|
||||||
|
IconGridiconsFullscreen: typeof import('~icons/gridicons/fullscreen')['default']
|
||||||
|
IconGridiconsFullscreenExit: typeof import('~icons/gridicons/fullscreen-exit')['default']
|
||||||
|
IconIcOutlineCheck: typeof import('~icons/ic/outline-check')['default']
|
||||||
|
IconLineMdMenuFoldLeft: typeof import('~icons/line-md/menu-fold-left')['default']
|
||||||
|
IconLineMdMenuUnfoldLeft: typeof import('~icons/line-md/menu-unfold-left')['default']
|
||||||
|
IconMdiArrowDownThin: typeof import('~icons/mdi/arrow-down-thin')['default']
|
||||||
|
IconMdiArrowUpThin: typeof import('~icons/mdi/arrow-up-thin')['default']
|
||||||
|
IconMdiClose: typeof import('~icons/mdi/close')['default']
|
||||||
|
IconMdiGithub: typeof import('~icons/mdi/github')['default']
|
||||||
|
IconMdiMoonWaningCrescent: typeof import('~icons/mdi/moon-waning-crescent')['default']
|
||||||
|
IconMdiPin: typeof import('~icons/mdi/pin')['default']
|
||||||
|
IconMdiPinOff: typeof import('~icons/mdi/pin-off')['default']
|
||||||
|
IconMdiRefresh: typeof import('~icons/mdi/refresh')['default']
|
||||||
|
IconMdiWechat: typeof import('~icons/mdi/wechat')['default']
|
||||||
|
IconMdiWhiteBalanceSunny: typeof import('~icons/mdi/white-balance-sunny')['default']
|
||||||
|
IconPhCaretDoubleLeftBold: typeof import('~icons/ph/caret-double-left-bold')['default']
|
||||||
|
IconPhCaretDoubleRightBold: typeof import('~icons/ph/caret-double-right-bold')['default']
|
||||||
IconSelect: typeof import('./src/components/custom/IconSelect.vue')['default']
|
IconSelect: typeof import('./src/components/custom/IconSelect.vue')['default']
|
||||||
|
IconUilSearch: typeof import('~icons/uil/search')['default']
|
||||||
ImageVerify: typeof import('./src/components/custom/ImageVerify.vue')['default']
|
ImageVerify: typeof import('./src/components/custom/ImageVerify.vue')['default']
|
||||||
LoadingEmptyWrapper: typeof import('./src/components/business/LoadingEmptyWrapper.vue')['default']
|
LoadingEmptyWrapper: typeof import('./src/components/business/LoadingEmptyWrapper.vue')['default']
|
||||||
LoginAgreement: typeof import('./src/components/business/LoginAgreement.vue')['default']
|
LoginAgreement: typeof import('./src/components/business/LoginAgreement.vue')['default']
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antv/g2plot": "^2.4.14",
|
"@antv/g2plot": "^2.4.15",
|
||||||
"@better-scroll/core": "^2.4.2",
|
"@better-scroll/core": "^2.4.2",
|
||||||
"@vueuse/core": "^8.2.3",
|
"@vueuse/core": "^8.2.3",
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.26.1",
|
||||||
@ -82,9 +82,9 @@
|
|||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"patch-package": "^6.4.7",
|
"patch-package": "^6.4.7",
|
||||||
"postinstall-postinstall": "^2.1.0",
|
"postinstall-postinstall": "^2.1.0",
|
||||||
"prettier": "^2.6.1",
|
"prettier": "^2.6.2",
|
||||||
"rollup-plugin-visualizer": "^5.6.0",
|
"rollup-plugin-visualizer": "^5.6.0",
|
||||||
"sass": "^1.49.10",
|
"sass": "^1.49.11",
|
||||||
"typescript": "^4.6.3",
|
"typescript": "^4.6.3",
|
||||||
"unplugin-icons": "^0.14.1",
|
"unplugin-icons": "^0.14.1",
|
||||||
"unplugin-vue-components": "^0.18.5",
|
"unplugin-vue-components": "^0.18.5",
|
||||||
|
2
src/typings/env.d.ts
vendored
2
src/typings/env.d.ts
vendored
@ -24,8 +24,6 @@ interface ImportMetaEnv {
|
|||||||
readonly VITE_APP_TITLE: string;
|
readonly VITE_APP_TITLE: string;
|
||||||
/** 项目描述 */
|
/** 项目描述 */
|
||||||
readonly VITE_APP_DESC: string;
|
readonly VITE_APP_DESC: string;
|
||||||
/** 开发启动的服务端口号 */
|
|
||||||
readonly VITE_SERVER_PORT: string;
|
|
||||||
/**
|
/**
|
||||||
* 权限路由模式:
|
* 权限路由模式:
|
||||||
* - static - 前端声明的静态
|
* - static - 前端声明的静态
|
||||||
|
@ -24,7 +24,7 @@ export default defineConfig(configEnv => {
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
port: Number(viteEnv.VITE_SERVER_PORT),
|
port: 3200,
|
||||||
open: true,
|
open: true,
|
||||||
proxy: createViteProxy(viteEnv)
|
proxy: createViteProxy(viteEnv)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user