提交 87f7dadf authored 作者: matian's avatar matian

修改channel

上级 113be915
......@@ -101,7 +101,7 @@ export default {
},
enrollQuery() {
const params = {
channel: 19960,
channel: window.localStorage.getItem('channel_num') || 19960,
project_id: this.formInfo.projectId,
name: this.formInfo.name,
phone: this.formInfo.phone
......
......@@ -45,7 +45,7 @@ export default {
ruleForm: {
name: '',
phone: '',
channel: 19960,
channel: window.localStorage.getItem('channel_num') || 19960,
project_id: 1006
},
isLoading: false,
......
......@@ -45,7 +45,9 @@ router.beforeEach(async (to, from, next) => {
await store.dispatch('generateRoutes')
before.update(to, from, next)
})
if (window.location.search.includes('channel_num')) {
window.localStorage.setItem('channel_num', window.location.search.slice(13))
}
window.G.$instance_vue = new Vue({
router,
store,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论