Commit 0217ddb1 by chenwq

feat(store/app): 为开发环境添加跳过企业微信认证直接显示窗口的快捷逻辑

该改动使非生产环境提前返回,跳过corpId相关的存储逻辑,提升本地开发效率
1 parent 1bc5626d
......@@ -8,6 +8,7 @@ const state = {
lastPath: ''
}
import router from '@/router'
const IS_PROD = ['production', 'prod'].includes(process.env.VUE_APP_ENV)
const mutations = {
SET_PAGE_META(state, meta) {
......@@ -78,6 +79,10 @@ const actions = {
if (phone) util.setLocalStorage('ww_params_phone', phone)
if (name) util.setLocalStorage('ww_params_name', name)
dispatch('registerHttp')
if (!IS_PROD) {
state.showWindow = true
return
}
if (corpId) {
let ww_storage_info = {}
ww_storage_info.corpId = corpId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!