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

修改channel

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