diff --git a/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js b/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js
index 74523e06..37f7609c 100644
--- a/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js
+++ b/packages/fes-preset-built-in/src/plugins/commands/dev/devServer.js
@@ -6,6 +6,7 @@ export function startDevServer({
webpackConfig,
host,
port,
+ proxy,
beforeMiddlewares,
afterMiddlewares,
customerDevServerConfig
@@ -14,8 +15,10 @@ export function startDevServer({
contentBase: webpackConfig.output.path,
hot: true,
host,
+ proxy,
compress: true,
noInfo: true,
+ disableHostCheck: true,
clientLogLevel: 'silent',
stats: 'errors-only',
before: (app) => {
diff --git a/packages/fes-template/.fes.js b/packages/fes-template/.fes.js
index 6451a6df..dd8f4cdd 100644
--- a/packages/fes-template/.fes.js
+++ b/packages/fes-template/.fes.js
@@ -9,9 +9,12 @@ export default {
publicPath: '/',
access: {
roles: {
- admin: ["/", "/onepiece", '/store']
+ admin: ["/", "/onepiece", '/store', '/simpleList']
}
},
+ request: {
+ dataField: 'result'
+ },
mock: {
prefix: '/v2'
},
@@ -31,6 +34,8 @@ export default {
name: 'onepiece'
}, {
name: 'store'
+ }, {
+ name: 'simpleList'
}]
},
locale: {
diff --git a/packages/fes-template/package.json b/packages/fes-template/package.json
index 1e84c335..2a9db8a6 100644
--- a/packages/fes-template/package.json
+++ b/packages/fes-template/package.json
@@ -54,10 +54,10 @@
"@webank/fes-plugin-enums": "^2.0.0-alpha.0",
"@webank/fes-plugin-jest": "^2.0.0-alpha.8",
"@webank/fes-plugin-vuex": "^2.0.0-alpha.8",
- "@webank/fes-plugin-request": "2.0.0-alpha.1",
+ "@webank/fes-plugin-request": "^2.0.0-alpha.8",
"ant-design-vue": "2.0.0",
"vue": "3.0.5",
- "vuex": "^4.0.0-rc.2"
+ "vuex": "^4.0.0"
},
"private": true
}
diff --git a/packages/fes-template/src/app.js b/packages/fes-template/src/app.js
index 266d9666..e47a0bf7 100644
--- a/packages/fes-template/src/app.js
+++ b/packages/fes-template/src/app.js
@@ -3,6 +3,8 @@
import { access } from '@webank/fes';
import PageLoading from '@/components/PageLoading';
import UserCenter from '@/components/UserCenter';
+import Andt from 'ant-design-vue';
+import 'ant-design-vue/dist/antd.css';
export const beforeRender = {
loading: ,
@@ -19,6 +21,10 @@ export const beforeRender = {
}
};
+export const onAppCreated = ({ app }) => {
+ app.use(Andt);
+};
+
export const layout = {
customHeader:
};
diff --git a/packages/fes-template/src/pages/simpleList.vue b/packages/fes-template/src/pages/simpleList.vue
new file mode 100644
index 00000000..331a9768
--- /dev/null
+++ b/packages/fes-template/src/pages/simpleList.vue
@@ -0,0 +1,376 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 全部
+ 关闭
+ 运行中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 全部
+ 关闭
+ 运行中
+
+
+
+
+
+
+ 全部
+ 关闭
+ 运行中
+
+
+
+
+
+
+ 查询
+ (queryParam = {})"
+ >重置
+
+ {{advanced ? "收起" : "展开"}}
+
+
+
+
+
+
+
+
+
+
+
+
+ Invite 一 {{record.name}}
+
+
+ Delete
+
+
+
+
+
+
+
+
+
+
+
+
+
+{
+ "name": "simpleList",
+ "title": "列表页面"
+}
+
diff --git a/yarn.lock b/yarn.lock
index 6cb4a3b5..f9b005b0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4351,13 +4351,6 @@
eslint-plugin-vue "^7.5.0"
vue-eslint-parser "^7.4.1"
-"@webank/fes-plugin-request@2.0.0-alpha.1":
- version "2.0.0-alpha.1"
- resolved "https://registry.npmjs.org/@webank/fes-plugin-request/-/fes-plugin-request-2.0.0-alpha.1.tgz#3e61bfabb961df1f3e7732ff160d1d3e9f5d0be7"
- integrity sha512-3ME9ciTBz3tzNwF8VxNocRScOu5yF/jSuu9VEtoE0YP2LsMZ5Tzw2xxrLxguPfdmdsUTkv1Ci7czx2QRo9M0/g==
- dependencies:
- axios "0.21.1"
-
"@webassemblyjs/ast@1.11.0":
version "1.11.0"
resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.0.tgz#a5aa679efdc9e51707a4207139da57920555961f"
@@ -16398,7 +16391,7 @@ vuepress@^2.0.0-alpha.18:
"@vuepress/core" "2.0.0-alpha.20"
"@vuepress/theme-default" "2.0.0-alpha.21"
-vuex@^4.0.0-rc.2:
+vuex@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/vuex/-/vuex-4.0.0.tgz#ac877aa76a9c45368c979471e461b520d38e6cf5"
integrity sha512-56VPujlHscP5q/e7Jlpqc40sja4vOhC4uJD1llBCWolVI8ND4+VzisDVkUMl+z5y0MpIImW6HjhNc+ZvuizgOw==