diff --git a/.eslintrc.js b/.eslintrc.js
index 773cf26..77cece1 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -9,5 +9,9 @@ module.exports = {
sourceType: 'module',
},
plugins: ['vue'],
- rules: {},
+ rules: {
+ 'import/no-unresolved': 0,
+ 'import/extensions': 0,
+ 'no-console': 0,
+ },
};
diff --git a/src/App.vue b/src/App.vue
index 3e53745..3405d4d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,10 +1,15 @@
-
-
-
-
+
+
+
+
+
+
diff --git a/src/routers/index.js b/src/routers/index.js
index b4a2b54..7f486ef 100644
--- a/src/routers/index.js
+++ b/src/routers/index.js
@@ -1,14 +1,31 @@
-import { createRouter, createWebHistory } from 'vue-router'
+import { createRouter, createWebHistory } from 'vue-router';
// 还有 createWebHashHistory 和 createMemoryHistory
-const routes = [
- { path: '/', redirect: '/network-config'},
- { path: '/network-config', name: 'network-config', meta: { title: '网络参数配置' }, component: () => import('@/views/network-config.vue')}
+export const routes = [
+ { path: '/', redirect: '/test' },
+ {
+ path: '/network-config',
+ name: 'network-config',
+ meta: { title: '网络参数配置' },
+ component: () => import('@/views/network-config.vue'),
+ },
+ {
+ path: '/function-config',
+ name: 'function-config',
+ meta: { title: '功能参数配置' },
+ component: () => import('@/views/function-config.vue'),
+ },
+ {
+ path: '/test',
+ name: 'test',
+ meta: { title: '测试' },
+ component: () => import('@/views/test.vue'),
+ },
];
const router = createRouter({
history: createWebHistory(),
routes,
-})
+});
-export default router
+export default router;
diff --git a/src/views/function-config.vue b/src/views/function-config.vue
new file mode 100644
index 0000000..cf8248f
--- /dev/null
+++ b/src/views/function-config.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 重置
+
+
+
+
+
+
diff --git a/src/views/network-config.vue b/src/views/network-config.vue
index 8e19176..b002e82 100644
--- a/src/views/network-config.vue
+++ b/src/views/network-config.vue
@@ -1,8 +1,114 @@
-
- 1
- 2
- 3
- 4
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 重置
+
+
+
+
+
diff --git a/src/views/test.vue b/src/views/test.vue
new file mode 100644
index 0000000..05d4963
--- /dev/null
+++ b/src/views/test.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+