base url 修改

This commit is contained in:
ray_wuhao 2023-04-06 15:20:22 +08:00
parent 47fe7853c5
commit 6fcbf918f1
2 changed files with 2 additions and 1 deletions

1
cfg.ts
View File

@ -47,6 +47,7 @@ import {
import type { AppConfigExport } from './src/types/cfg'
const config: AppConfigExport = {
/** 公共基础路径配置, 如果为空则会默认以 '/' 填充 */
base: '/ray-template/',
/** 配置首屏加载信息 */
preloadingConfig: {

View File

@ -61,7 +61,7 @@ const __APP_CFG__ = {
// https://vitejs.dev/config/
export default defineConfig(async ({ mode }) => {
return {
base,
base: base || '/',
define: {
__APP_CFG__: JSON.stringify(__APP_CFG__),
},