-
-
- -
-
+{{item.hits}}
-
-
{{item.title}}
-
-
- -
-
-
- -
- Sky
-
- - 原文
- -
- {{item.summary}}
-
- -
-
-
-
+
+
+
+
+
+
+
DEMO
+
+
+ -
+
+{{item.hits}}
+
+
+ {{item.title}}
+
+
+
+
+ -
+
+
+ -
+ Sky
+
+ - 原文
+ -
+ {{item.summary}}
+
+ -
+
+
+
+
+
+
+
+
-
-
-
-
+
-
-
diff --git a/app/web/component/app/router.js b/app/web/component/app/router.js
index 47f9542..4929104 100755
--- a/app/web/component/app/router.js
+++ b/app/web/component/app/router.js
@@ -4,26 +4,32 @@ import VueRouter from 'vue-router';
import ListView from './list';
import DetailView from './detail';
+// demo
+// import demoTest from './demo.vue';
Vue.use(VueRouter);
const router = new VueRouter({
- mode: 'history',
- base: '/app',
- routes: [
- {
- path: '/',
- component: ListView
- },
- {
- path: '/list',
- component: ListView
- },
- {
- path: '/detail/:id',
- component: DetailView
- }
- ]
+ mode: 'history',
+ base: '/app',
+ routes: [
+ {
+ path: '/',
+ components: {
+ default: ListView,
+ demo: () => import('./demo.vue')
+ // demo: demoTest
+ }
+ },
+ {
+ path: '/list',
+ component: ListView
+ },
+ {
+ path: '/detail/:id',
+ component: DetailView
+ }
+ ]
});
export default router;