feat: scaffold cwos-portal Vue 2 skeleton (config)

Includes package.json, vue.config.js, babel.config.js, and public/index.html


Former-commit-id: 670bbb3eadd4c3900723717b0cdb64a5faa790e6
This commit is contained in:
反编译工作区
2026-04-29 12:54:50 +08:00
parent 86fc4eb695
commit 7a9dcc43dc
4 changed files with 55 additions and 0 deletions
@@ -0,0 +1,3 @@
module.exports = {
presets: ['@vue/cli-plugin-babel/preset'],
};
@@ -0,0 +1,24 @@
{
"name": "cwos-portal",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.4",
"element-ui": "^2.15.14",
"vue": "^2.6.14",
"vue-router": "^3.5.3",
"vuex": "^3.6.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.19",
"@vue/cli-plugin-router": "^4.5.19",
"@vue/cli-plugin-vuex": "^4.5.19",
"@vue/cli-service": "^4.5.19",
"vue-template-compiler": "^2.6.14"
}
}
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<link rel="shortcut icon" href="./favicon.ico">
<title>物业管理门户</title>
</head>
<body>
<div id="app"></div>
</body>
</html>
@@ -0,0 +1,15 @@
module.exports = {
publicPath: './',
outputDir: 'dist',
assetsDir: 'static',
productionSourceMap: false,
devServer: {
port: 8080,
proxy: {
'/api': {
target: 'http://localhost:8090',
changeOrigin: true,
},
},
},
};