diff --git a/components/base/CliHeader.vue b/components/base/CliHeader.vue
index 7ee6d8896950e1f80350b16f42c0c0e59d93c94d..62d5cb21c9fa60ccabb4c1154eaf4a96805dd405 100644
--- a/components/base/CliHeader.vue
+++ b/components/base/CliHeader.vue
@@ -64,6 +64,7 @@ export default {
{
"index": "1",
"name": "首页",
+ "path": "/"
}
],
[
@@ -80,6 +81,7 @@ export default {
{
"index": "3-1",
"name": "投放位置",
+ "path": "/detail_display"
},
{
"index": "3-2",
@@ -116,14 +118,15 @@ export default {
methods: {
handleSelect(key, keyPath) {
console.log(key, keyPath);
- switch (key) {
- case "1":
- this.$router.push({path: '/'});
- break;
- case "3-1":
- this.$router.push({path: '/detail_display'});
- break;
- }
+ this.navIndexList.forEach(outerNavItems => {
+ outerNavItems.forEach(innerNavItem => {
+ if (innerNavItem.index === key) {
+ if (innerNavItem.path) {
+ this.$router.push(innerNavItem.path);
+ }
+ }
+ })
+ });
},
getCurPageName() {
diff --git a/nuxt.config.js b/nuxt.config.js
index ee160b27d8108bb9f81b2b971e72529cc64cd151..43706a2f73556a35130b07e4b840c3636723b448 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -6,7 +6,7 @@ export default {
head: {
title: 'CampusSharedBikeWeb',
htmlAttrs: {
- lang: 'en'
+ lang: 'zh-cn'
},
meta: [
{charset: 'utf-8'},
diff --git a/package.json b/package.json
index 7e2d5405b23334e5edd653ffdcc02bdf73925c81..4d2763b26932e9fe30b6f4fca6a8b39304ef2aca 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "CampusSharedBikeWeb",
+ "name": "Campus-Shared-Bike-Web",
"version": "1.0.0",
"private": true,
"scripts": {
diff --git a/pages/fence/index.vue b/pages/fence/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..881e95ce047030b35ac083743f359a85da9e5f3e
--- /dev/null
+++ b/pages/fence/index.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+