Commit 6609d850 authored by zhengke's avatar zhengke

erp参数接收

parent b728b2ae
<template> <template>
<div v-if="isFinish" style="height: 100%;"> <div v-if="isFinish" style="height: 100vh;overflow: auto;background: rgb(243, 246, 251);">
<Screen v-if="screening" /> <Screen v-if="screening" />
<Market v-else-if="market"></Market> <Market v-else-if="market"></Market>
<Editor v-else-if="_isPC" /> <Editor v-else-if="_isPC" />
...@@ -43,13 +43,14 @@ if (process.env.NODE_ENV === 'production') { ...@@ -43,13 +43,14 @@ if (process.env.NODE_ENV === 'production') {
const userLoginHandler = async ()=>{ const userLoginHandler = async ()=>{
let param = query() let param = query()
let userId = 1 let userId = 1
let ConfigId = 9117 // 9117 let ConfigId = 0 // 9117
let model = 0 let model = 1
if(param.uid) userId=parseInt(param.uid) if(param.uid) userId=parseInt(param.uid)
if(ConfigId) ConfigIdStore.setConfigId(ConfigId) if(param.ConfigId) ConfigId=parseInt(param.ConfigId)
if(model) modelStore.setModel(model) if(param.model) model=parseInt(param.model)
ConfigIdStore.setConfigId(ConfigId)
modelStore.setModel(model)
try { try {
await userStore().setUserLoginAsync(userId) await userStore().setUserLoginAsync(userId)
} catch (error) { } catch (error) {
...@@ -64,7 +65,8 @@ const userLoginHandler = async ()=>{ ...@@ -64,7 +65,8 @@ const userLoginHandler = async ()=>{
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
} }
) ).then(() => {})
.catch(() => {})
} }
userLoginHandler() userLoginHandler()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment