- 移除了 AboutView.vue 中的多余代码- 完善了 CustomLogin.vue 中的登录逻辑,添加了表单提交后的处理 - 更新了 CustomNews.vue 中的数据请求方式- 删除了不再使用的 db.json 文件 - 在 package.json 中添加了 serve 脚本 - 在 vite.config.js 中配置了服务器代理
33 lines
830 B
JSON
33 lines
830 B
JSON
{
|
|
"name": "vue-project",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"serve": "vite serve",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
|
|
"format": "prettier --write src/"
|
|
},
|
|
"dependencies": {
|
|
"@ant-design/icons-vue": "^7.0.1",
|
|
"ant-design-vue": "^4.2.5",
|
|
"js-cookie": "^3.0.5",
|
|
"pinia": "^2.1.7",
|
|
"vue": "^3.4.29",
|
|
"vue-router": "^4.3.3"
|
|
},
|
|
"devDependencies": {
|
|
"@rushstack/eslint-patch": "^1.8.0",
|
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
"eslint": "^8.57.0",
|
|
"eslint-plugin-vue": "^9.23.0",
|
|
"prettier": "^3.2.5",
|
|
"vite": "5.4.6",
|
|
"vite-plugin-vue-devtools": "^7.3.1"
|
|
}
|
|
}
|