@@ -63,6 +63,8 @@ export default {
this.$router.push(`/org/${this.activeIndex}?parentCode=${parentCode}`);
return;
}
+ // 类型为0(链接)跳转链接
+ if (env.type == '0') window.open(env.url);
// 类型为1(栏目)进入列表页
if (env.type == '1') this.$router.push(`/list/${this.activeIndex}?parentCode=${parentCode}`);
// 类型为2(单页)进入单页页面
@@ -42,6 +42,8 @@ export default {
this.$router.push(`/constitution/${item.code}?parentCode=${parentCode}`);
+ if (item.type == '0') window.open(item.url);
if (item.type == '1') this.$router.push(`/list/${item.code}?parentCode=${parentCode}`);
@@ -5,7 +5,7 @@ Vue.use(VueRouter);
const routes = [
{
- path: '/www',
+ path: '/',
name: 'home',
component: () => import('../views/Home.vue')
},
@@ -42,6 +42,7 @@ const routes = [
];
const router = new VueRouter({
+ base: '/www/',
mode: 'history',
routes
});