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/dist/yc-ui2.common.js +19 -18
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.css +1 -1
- package/dist/yc-ui2.umd.js +19 -18
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +5 -7
- package/src/main.js +1 -1
- package/src/router/index.js +7 -8
package/package.json
CHANGED
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
package/src/router/index.js
CHANGED
@@ -4,18 +4,17 @@ import VueRouter from "vue-router"
|
|
4
4
|
Vue.use(VueRouter)
|
5
5
|
|
6
6
|
const routes = [
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|