提交 4dc95ca8 编写于 作者: B baiy 提交者: ninecents

fix

上级 f05fc467
import Vue from 'vue'
import Router from 'vue-router'
import {stat} from "./helper";
Vue.use(Router);
// 路由配置
const routes = [
{
path: "/tool/base64",
component: r => require(['./views/tool/base64.vue'], r)
},
{
path: "/tool/code",
component: r => require(['./views/tool/code.vue'], r)
},
{
path: "/tool/decimalConvert",
component: r => require(['./views/tool/decimalConvert.vue'], r)
},
{
path: "/tool/diffs",
component: r => require(['./views/tool/diffs.vue'], r)
},
{
path: "/tool/encrypt",
component: r => require(['./views/tool/encrypt.vue'], r)
},
{
path: "/tool/hash",
component: r => require(['./views/tool/hash.vue'], r)
},
{
path: "/tool/ip",
component: r => require(['./views/tool/ip.vue'], r)
},
{
path: "/tool/phpArraySerialize",
component: r => require(['./views/tool/phpArraySerialize.vue'], r)
},
{
path: "/tool/pinyin",
component: r => require(['./views/tool/pinyin.vue'], r)
},
{
path: "/tool/qrCode",
component: r => require(['./views/tool/qrCode.vue'], r)
},
{
path: "/tool/randomString",
component: r => require(['./views/tool/randomString.vue'], r)
},
{
path: "/tool/regex",
component: r => require(['./views/tool/regex.vue'], r)
},
{
path: "/tool/timestamp",
component: r => require(['./views/tool/timestamp.vue'], r)
},
{
path: "/tool/unicode",
component: r => require(['./views/tool/unicode.vue'], r)
},
{
path: "/tool/url",
component: r => require(['./views/tool/url.vue'], r)
},
{
path: "/tool/crontab",
component: r => require(['./views/tool/crontab.vue'], r)
},
];
const router = new Router({routes});
stat('index');
router.afterEach(to => {
stat('tool', {tool: to.path})
});
export default router
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册