docs: 更新项目文档,完善需求和技术细节
This commit is contained in:
18
admin_website/.env.development
Normal file
18
admin_website/.env.development
Normal file
@@ -0,0 +1,18 @@
|
||||
# 爱鉴花后台管理系统 - 开发环境配置
|
||||
|
||||
# 应用配置
|
||||
VUE_APP_TITLE=爱鉴花后台管理系统
|
||||
VUE_APP_VERSION=1.0.0
|
||||
VUE_APP_PORT=3250
|
||||
|
||||
# API配置
|
||||
VUE_APP_API_BASE_URL=http://localhost:3200/api/v1
|
||||
VUE_APP_API_TIMEOUT=30000
|
||||
|
||||
# 功能开关
|
||||
VUE_APP_FEATURE_ANALYTICS=true
|
||||
VUE_APP_FEATURE_WEBSOCKET=false
|
||||
|
||||
# 开发工具配置
|
||||
VUE_APP_DEBUG=true
|
||||
VUE_APP_DEVTOOLS=true
|
||||
33
admin_website/package.json
Normal file
33
admin_website/package.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "aijianhua-admin",
|
||||
"version": "1.0.0",
|
||||
"description": "爱鉴花后台管理系统",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --port 3250",
|
||||
"build": "vue-cli-service build",
|
||||
"dev": "vue-cli-service serve --port 3250",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.3.4",
|
||||
"vue-router": "^4.2.4",
|
||||
"vuex": "^4.0.2",
|
||||
"element-plus": "^2.3.12",
|
||||
"axios": "^1.4.0",
|
||||
"@element-plus/icons-vue": "^2.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-service": "^5.0.8",
|
||||
"@vue/eslint-config-standard": "^8.0.1",
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-plugin-vue": "^9.15.1",
|
||||
"sass": "^1.64.1",
|
||||
"sass-loader": "^13.3.2"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"not dead"
|
||||
]
|
||||
}
|
||||
51
admin_website/vue.config.js
Normal file
51
admin_website/vue.config.js
Normal file
@@ -0,0 +1,51 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
|
||||
// 开发服务器配置
|
||||
devServer: {
|
||||
port: 3250,
|
||||
host: 'localhost',
|
||||
open: true,
|
||||
hot: true,
|
||||
compress: true,
|
||||
|
||||
// 代理配置,解决跨域问题
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3200',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/api/v1'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 构建配置
|
||||
configureWebpack: {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': require('path').resolve(__dirname, 'src')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 生产环境配置
|
||||
productionSourceMap: false,
|
||||
|
||||
// CSS配置
|
||||
css: {
|
||||
extract: process.env.NODE_ENV === 'production',
|
||||
sourceMap: false,
|
||||
loaderOptions: {
|
||||
sass: {
|
||||
additionalData: `
|
||||
@import "@/styles/variables.scss";
|
||||
@import "@/styles/mixins.scss";
|
||||
`
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user