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

修改channel

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