- 基础环境:Docker 部署配置,源码挂载实时同步 - 修复:super_admin 权限补全、登录重定向循环 - 开发:店铺营销账户账单 - 抖音账户(15字段汇总账单) - 开发:店铺营销账户账单 - 淘系支付宝账户(8字段流水账单) - 开发:店铺营销账户账单 - 拼多多账户(7字段流水账单) - 业务页面导航集成:config/business_navigation.php + Business\Pages 控制器 - 各平台独立表结构和视图,互不影响
66 lines
1.4 KiB
JavaScript
Vendored
66 lines
1.4 KiB
JavaScript
Vendored
require('./bootstrap');
|
|
|
|
import Vue from 'vue';
|
|
import VueRouter from 'vue-router';
|
|
import DashboardPlugin from './plugins/dashboard-plugin';
|
|
|
|
Vue.use(DashboardPlugin);
|
|
Vue.use(VueRouter);
|
|
|
|
import Wizard from './Wizard.vue';
|
|
import Company from './views/wizard/Company.vue';
|
|
import Currencies from './views/wizard/Currencies.vue';
|
|
import Finish from './views/wizard/Finish.vue';
|
|
|
|
var global_path = new URL(url).protocol + '//' + window.location.host;
|
|
var base_path = url.replace(global_path, '');
|
|
|
|
const router = new VueRouter({
|
|
mode: 'history',
|
|
|
|
base: base_path,
|
|
|
|
routes: [
|
|
{
|
|
path: '/wizard',
|
|
name: 'Wizard',
|
|
component: Company
|
|
},
|
|
{
|
|
path: '/wizard/companies',
|
|
name: 'Company',
|
|
component: Company
|
|
},
|
|
{
|
|
path: '/wizard/currencies',
|
|
name: 'Currencies',
|
|
component: Currencies
|
|
},
|
|
{
|
|
path: '/wizard/finish',
|
|
name: 'Finish',
|
|
component: Finish
|
|
}
|
|
],
|
|
|
|
linkActiveClass: 'active',
|
|
|
|
scrollBehavior: (to, from ,savedPosition) => {
|
|
if (savedPosition) {
|
|
return savedPosition;
|
|
}
|
|
|
|
if (to.hash) {
|
|
return { selector: to.hash };
|
|
}
|
|
|
|
return { x: 0, y: 0 };
|
|
}
|
|
});
|
|
|
|
new Vue({
|
|
el : '#app',
|
|
router,
|
|
render: h => h(Wizard),
|
|
});
|