提交 383ed6bb authored 作者: matian's avatar matian

修改channel

上级 7e95b1ba
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
ruleForm: { ruleForm: {
name: '', name: '',
phone: '', phone: '',
channel: 19960, channel: window.localStorage.getItem('channel_num') || 19960,
project_id: 1021 project_id: 1021
}, },
isLoading: false, isLoading: false,
......
...@@ -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
......
...@@ -36,7 +36,9 @@ router.beforeEach(async (to, from, next) => { ...@@ -36,7 +36,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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论