提交 45178932 authored 作者: matian's avatar matian

修改channel_num

上级 cd25bc81
......@@ -42,7 +42,7 @@ import * as api from '@/api'
export default {
data() {
return {
ruleForm: { name: '', phone: '', project_id: '1012', channel: 19960 },
ruleForm: { name: '', phone: '', project_id: '1012', channel: localStorage.setItem('channel_num') || 19960 },
projectList: [
{ label: this.$t('aside.project1'), value: '1012' },
{ label: this.$t('aside.project5'), value: '1006' },
......
......@@ -36,6 +36,9 @@ export default {
}
window.history.pushState(state, 'title', '')
}
if (this.$route.query.channel_num) {
localStorage.setItem('channel_num', this.$route.query.channel_num)
}
}
}
</script>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论