docs(shengxiao): 添加生肖预测模型说明文档
- 新增 influence_map.md 文件,详细说明了基于数据分析的主导生肖关联预测地图 - 新增 rules.md 文件,阐述了四条核心排除规则及其验证过程 - 新增 生肖.md 文件,总结了动态映射模型的最终预测结果和边界排除法 - 更新 .env.app 和 .env.web 文件,添加了Vite 构建配置 - 修改 package.json,增加了不同环境的构建脚本 - 更新 vite.config.js,配置了多环境支持
This commit is contained in:
4
biji-qianduan/.env.app
Normal file
4
biji-qianduan/.env.app
Normal file
@@ -0,0 +1,4 @@
|
||||
VITE_BASE_URL=./
|
||||
|
||||
# 在为App构建前,请将这里替换为你的真实后端API公网地址
|
||||
VITE_API_BASE_URL=https://api.example.com
|
||||
2
biji-qianduan/.env.web
Normal file
2
biji-qianduan/.env.web
Normal file
@@ -0,0 +1,2 @@
|
||||
VITE_BASE_URL=/
|
||||
VITE_API_BASE_URL=/api
|
||||
@@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build:frontend": "vite build",
|
||||
"build:web": "vite build --mode web",
|
||||
"build:app": "vite build --mode app",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import path from 'path'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '')
|
||||
return {
|
||||
// base: env.VITE_BASE_URL,
|
||||
plugins: [vue()],
|
||||
base: './',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src')
|
||||
@@ -25,4 +29,5 @@ export default defineConfig({
|
||||
drop: ['console', 'debugger'],
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user