mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +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'
|
import type { AppConfigExport } from './src/types/cfg'
|
||||||
|
|
||||||
const config: AppConfigExport = {
|
const config: AppConfigExport = {
|
||||||
|
/** 公共基础路径配置, 如果为空则会默认以 '/' 填充 */
|
||||||
base: '/ray-template/',
|
base: '/ray-template/',
|
||||||
/** 配置首屏加载信息 */
|
/** 配置首屏加载信息 */
|
||||||
preloadingConfig: {
|
preloadingConfig: {
|
||||||
|
@ -61,7 +61,7 @@ const __APP_CFG__ = {
|
|||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(async ({ mode }) => {
|
export default defineConfig(async ({ mode }) => {
|
||||||
return {
|
return {
|
||||||
base,
|
base: base || '/',
|
||||||
define: {
|
define: {
|
||||||
__APP_CFG__: JSON.stringify(__APP_CFG__),
|
__APP_CFG__: JSON.stringify(__APP_CFG__),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user