Browse Source

Merge branch 'zxm' of http://124.70.32.114:3100/zhangxiaomeng/kechengfuzhu into wzx

# Conflicts:
#	kcui/src/router/router.js
wzx
linsheng0116 1 year ago
parent
commit
260a34c27f
  1. 15
      kcui/src/App.vue
  2. BIN
      kcui/src/assets/img/foot.png
  3. BIN
      kcui/src/assets/img/head.png
  4. BIN
      kcui/src/assets/img/leftBox.png
  5. BIN
      kcui/src/assets/img/xuan.png
  6. 18
      kcui/src/router/router.js

15
kcui/src/App.vue

@ -16,6 +16,19 @@ export default {
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
height: 100%;
margin: 0;
padding: 0;
}
body{
margin: 0;
padding: 0;
height: 100%;
}
html{
margin: 0;
padding: 0;
height: 100%;
}
</style>

BIN
kcui/src/assets/img/foot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
kcui/src/assets/img/head.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
kcui/src/assets/img/leftBox.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
kcui/src/assets/img/xuan.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

18
kcui/src/router/router.js

@ -1,9 +1,10 @@
//1.导入vue 和 vuerouter 的包
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/view/Home.vue'
// import Home from '@/view/Home.vue'
import Book from '@/view/Book.vue'
import Calculator from "@/view/Calculator.vue";
import TwInfo from '@/view/TWInfo.vue'
//2.调用vue.use() 函数,把 VueRouter 安装为 Vue 的插件
//vue.use()函数的作用,就是来安装插件的
@ -12,11 +13,11 @@ Vue.use(VueRouter)
export default new VueRouter({
routes: [ //配置路由,这里是个数组
{ //每一个链接都是一个对象
path: '/', //链接路径
name: 'Home', //路由名称,
component: Home //对应的组件模板
},
// { //每一个链接都是一个对象
// path: '/', //链接路径
// name: 'Home', //路由名称,
// component: Home //对应的组件模板
// },
{ //每一个链接都是一个对象
path: '/Book', //链接路径
name: 'Book', //路由名称,
@ -27,5 +28,10 @@ export default new VueRouter({
name: 'Calculator',
component: Calculator
},
{ //每一个链接都是一个对象
path: '/', //链接路径
name: 'TwInfo', //路由名称,
component: TwInfo //对应的组件模板
},
]
})

Loading…
Cancel
Save