mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 19:42:07 +08:00
base url 修改
This commit is contained in:
parent
47fe7853c5
commit
6fcbf918f1
1
cfg.ts
1
cfg.ts
@ -47,6 +47,7 @@ import {
|
||||
import type { AppConfigExport } from './src/types/cfg'
|
||||
|
||||
const config: AppConfigExport = {
|
||||
/** 公共基础路径配置, 如果为空则会默认以 '/' 填充 */
|
||||
base: '/ray-template/',
|
||||
/** 配置首屏加载信息 */
|
||||
preloadingConfig: {
|
||||
|
@ -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__),
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user