diff --git a/components/smallCommon/Curd.vue b/components/smallCommon/Curd.vue
new file mode 100644
index 0000000..07c6e3f
--- /dev/null
+++ b/components/smallCommon/Curd.vue
@@ -0,0 +1,225 @@
+
+
+
+
+
+
+
+
+
+ {{ cItem.label }}
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+ 删除
+
+ 编辑
+
+
+
+
+
+
+
+ {{ cItem.label }}
+
+
+
+
+
+
+
+
+
diff --git a/layouts/manager.vue b/layouts/manager.vue
index e798b0c..68f5209 100644
--- a/layouts/manager.vue
+++ b/layouts/manager.vue
@@ -2,44 +2,16 @@
- 管理系统
+ 欢迎
-
-
-
- nav 1
-
-
-
- nav 2
-
-
-
- nav 3
-
-
-
- nav 4
-
-
-
- nav 5
-
-
-
- nav 6
-
-
-
- nav 7
-
-
-
- nav 8
+
+
+
+ {{ item.title }}
-
+
(collapsed = !collapsed)"
/>
-
-
-
-
- {{ route.breadcrumbName }}
-
-
- {{ route.breadcrumbName }}
-
-
-
+
+
@@ -73,9 +45,9 @@
-
+
@@ -83,7 +55,7 @@
diff --git a/pages/manager/test.vue b/pages/manager/test.vue
deleted file mode 100644
index f5eff81..0000000
--- a/pages/manager/test.vue
+++ /dev/null
@@ -1,15 +0,0 @@
-
- test
-
-
-
-
-
diff --git a/pages/manager/user.vue b/pages/manager/user.vue
new file mode 100644
index 0000000..e08c047
--- /dev/null
+++ b/pages/manager/user.vue
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
diff --git a/plugins/axios.js b/plugins/axios.js
index ba6d55b..0027733 100644
--- a/plugins/axios.js
+++ b/plugins/axios.js
@@ -4,7 +4,7 @@ import Vue from 'vue'
axios.defaults.withcredentials =true
// create an axios instance
const service = axios.create({
- baseURL: '', // 所有异步请求都加上/api,nginx转发到后端Springboot
+ baseURL: process.env.NODE_ENV === 'development' ? '' : 'http://101.43.201.20', // 所有异步请求都加上/api,nginx转发到后端Springboot
timeout: 5000 // request timeout
})
@@ -38,3 +38,17 @@ service.interceptors.response.use(
)
Vue.prototype.$http = service
+Vue.prototype.$post = (url, data) => {
+ return service({
+ url,
+ method: "post",
+ data
+ })
+}
+Vue.prototype.$get = (url, data) => {
+ return service({
+ url,
+ method: "get",
+ params: data
+ })
+}