diff --git a/src/router/index.js b/src/router/index.js index b5313d3..c8c6467 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -24,7 +24,13 @@ const routes = [ path: '/ty', name: 'ty', component: ()=>import("../views/ty/index.vue"), -} +}, + +{ + path: '/test', + name: 'test', + component: ()=>import("../views/test.vue"), +}, ] const router = new VueRouter({ diff --git a/src/views/test.vue b/src/views/test.vue index e69de29..51a2b6b 100644 --- a/src/views/test.vue +++ b/src/views/test.vue @@ -0,0 +1,239 @@ + + \ No newline at end of file diff --git a/src/views/ty/index.vue b/src/views/ty/index.vue index b30f63a..f0aa5da 100644 --- a/src/views/ty/index.vue +++ b/src/views/ty/index.vue @@ -42,11 +42,11 @@
-
+ +
@@ -55,7 +55,7 @@
-
--> +
@@ -178,11 +178,11 @@ export default { }, created() { // this.$nextTick 将回调延迟到下次DOM更新循环之后执行。在修改数据之后立即使用它,然后等待DOM更新 - // this.$nextTick(() => { - // this.initPlugin(); - // this.initPlugin2(); - // this.initPlugin3(); - // }); + this.$nextTick(() => { + this.initPlugin(); + this.initPlugin2(); + this.initPlugin3(); + }); },