From cb019d1824108bef0145ba25d6bf64a15d89e359 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 12 Aug 2019 17:16:56 +0800 Subject: [PATCH] debugger router --- debugger/package-lock.json | 5 ++ debugger/package.json | 3 +- debugger/src/App.vue | 13 +---- debugger/src/components/Context.vue | 35 +++++++++++ debugger/src/components/HelloWorld.vue | 58 ------------------- .../src/components/{Debug.vue => Home.vue} | 6 +- debugger/src/main.js | 13 +++-- debugger/src/routes.js | 7 +++ 8 files changed, 63 insertions(+), 77 deletions(-) create mode 100644 debugger/src/components/Context.vue delete mode 100644 debugger/src/components/HelloWorld.vue rename debugger/src/components/{Debug.vue => Home.vue} (75%) create mode 100644 debugger/src/routes.js diff --git a/debugger/package-lock.json b/debugger/package-lock.json index 5cec748e..f5c825ec 100644 --- a/debugger/package-lock.json +++ b/debugger/package-lock.json @@ -10994,6 +10994,11 @@ } } }, + "vue-router": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.2.tgz", + "integrity": "sha512-WssQEHSEvIS1/CI4CO2T8LJdoK4Q9Ngox28K7FDNMTfzNTk2WS5D0dDlqYCaPG+AG4Z8wJkn1KrBc7AhspZJUQ==" + }, "vue-style-loader": { "version": "4.1.2", "resolved": "https://registry.npm.taobao.org/vue-style-loader/download/vue-style-loader-4.1.2.tgz", diff --git a/debugger/package.json b/debugger/package.json index 6cf4863f..d9b2e2c8 100644 --- a/debugger/package.json +++ b/debugger/package.json @@ -10,7 +10,8 @@ "dependencies": { "axios": "^0.19.0", "core-js": "^2.6.5", - "vue": "^2.6.10" + "vue": "^2.6.10", + "vue-router": "^3.1.2" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.10.0", diff --git a/debugger/src/App.vue b/debugger/src/App.vue index ce2c8d13..1d13abee 100644 --- a/debugger/src/App.vue +++ b/debugger/src/App.vue @@ -1,21 +1,12 @@ diff --git a/debugger/src/components/Context.vue b/debugger/src/components/Context.vue new file mode 100644 index 00000000..efb8537c --- /dev/null +++ b/debugger/src/components/Context.vue @@ -0,0 +1,35 @@ + + + + + + diff --git a/debugger/src/components/HelloWorld.vue b/debugger/src/components/HelloWorld.vue deleted file mode 100644 index 879051a2..00000000 --- a/debugger/src/components/HelloWorld.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - diff --git a/debugger/src/components/Debug.vue b/debugger/src/components/Home.vue similarity index 75% rename from debugger/src/components/Debug.vue rename to debugger/src/components/Home.vue index 956b2b1a..744709c8 100644 --- a/debugger/src/components/Debug.vue +++ b/debugger/src/components/Home.vue @@ -1,5 +1,6 @@