yc-ui2 0.1.1-beta02 → 0.1.1-beta03

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-ui2",
3
- "version": "0.1.1-beta02",
3
+ "version": "0.1.1-beta03",
4
4
  "private": false,
5
5
  "description": "湖南优创UI组件库",
6
6
  "main": "dist/yc-ui2.umd.min.js",
package/src/App.vue CHANGED
@@ -2,6 +2,7 @@
2
2
  <div id="app">
3
3
  <!-- <YcSlideVerify /> -->
4
4
  <YcCustomerService />
5
+ <router-view></router-view>
5
6
  </div>
6
7
  </template>
7
8
 
@@ -16,12 +17,9 @@ export default {
16
17
  </script>
17
18
 
18
19
  <style>
19
- #app {
20
- font-family: Avenir, Helvetica, Arial, sans-serif;
21
- -webkit-font-smoothing: antialiased;
22
- -moz-osx-font-smoothing: grayscale;
23
- text-align: center;
24
- color: #2c3e50;
25
- margin-top: 60px;
20
+ html,
21
+ body {
22
+ padding: 0px;
23
+ margin: 0px;
26
24
  }
27
25
  </style>
package/src/main.js CHANGED
@@ -6,7 +6,7 @@ import SlideVerify from "vue-monoplasty-slide-verify"
6
6
  import ElementUI from 'element-ui'
7
7
  import 'element-ui/lib/theme-chalk/index.css';
8
8
 
9
- Vue.config.productionTip = false
9
+ // Vue.config.productionTip = false
10
10
 
11
11
  Vue.use(SlideVerify)
12
12
  Vue.use(ElementUI)
@@ -4,18 +4,17 @@ import VueRouter from "vue-router"
4
4
  Vue.use(VueRouter)
5
5
 
6
6
  const routes = [
7
- // {
8
- // path: '/',
9
- // component: Router1
10
- // },
11
- // {
12
- // path: '/router2',
13
- // component: Router2
14
- // }
7
+ {
8
+ path: "/question",
9
+ component: (resolve) => require(['@/components/YcCustomerService/question'], resolve),
10
+ hidden: true,
11
+ },
15
12
  ]
16
13
 
17
14
  const router = new VueRouter({
18
15
  routes,
16
+ mode: "history", // 去掉url中的#
17
+ scrollBehavior: () => ({ y: 0 })
19
18
  })
20
19
 
21
20
  export default router