init: 移动游戏项目独立化(便携式 App.vue + 独立 i18n,可嵌入 mainPage)

This commit is contained in:
root
2026-07-23 06:57:03 +00:00
commit a5d4c05392
28 changed files with 2844 additions and 0 deletions

22
vite.config.js Normal file
View File

@@ -0,0 +1,22 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
base: './',
server: {
port: 5174,
// 开发时把站点根的静态资源448 游戏/截图、449 排行榜接口)代理到本地 8080
// 与 mainPage 同款配置;生产由 Apache 静态/PHP 服务。
proxy: {
'/448': {
target: 'http://localhost:8080',
changeOrigin: true
},
'/449': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
}
})