瀏覽代碼

fix: 设置 SCENE 导致 BASE_URL 未解析

chenlei 11 月之前
父節點
當前提交
43bcd004ec
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      vue.config.js

+ 2 - 2
vue.config.js

@@ -26,13 +26,13 @@ module.exports = defineConfig({
     scene: {
       template: 'public/index.html',
       entry: 'src/main.ts',
-      filename: `${SCENE || 'index'}.html`,
+      filename: 'index.html',
       title: process.env.TITLE,
     },
     hotspot: {
       template: 'hotspot/hotspot.html',
       entry: 'hotspot/main.ts',
-      filename: `${SCENE ? SCENE + '-hotspot' : 'hotspot'}.html`,
+      filename: 'hotspot.html',
       title: process.env.TITLE,
     },
   },