|
|
@ -7,9 +7,9 @@ |
|
|
|
--> |
|
|
|
<template> |
|
|
|
<a-config-provider :locale="zh_CN"> |
|
|
|
<!-- <div v-if="isRouter" class="d-flex flex-row flex-nowrap" id="app"> --> |
|
|
|
<div class="d-flex flex-row flex-nowrap" id="app"> |
|
|
|
<btn-con /> |
|
|
|
<div v-if="isRouter" class="d-flex flex-row flex-nowrap" id="app"> |
|
|
|
<!-- <div class="d-flex flex-row flex-nowrap" id="app"> --> |
|
|
|
<!-- <btn-con /> --> |
|
|
|
<router-view class="flex-1 bg" style="padding: 6px"></router-view> |
|
|
|
</div> |
|
|
|
</a-config-provider> |
|
|
@ -18,12 +18,12 @@ |
|
|
|
<script> |
|
|
|
import { mapState, mapActions, mapMutations } from 'vuex'; |
|
|
|
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; |
|
|
|
import BtnCon from 'components/BtnCom/BtnCon.vue'; |
|
|
|
// import BtnCon from 'components/BtnCom/BtnCon.vue'; |
|
|
|
import { getHId } from 'config/api'; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'App', |
|
|
|
components: { BtnCon }, |
|
|
|
// components: { BtnCon }, |
|
|
|
data() { |
|
|
|
return { zh_CN, isRouter: false }; |
|
|
|
}, |
|
|
@ -36,10 +36,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
async created() { |
|
|
|
const userId = '1387952026067013632'; |
|
|
|
const params = { userId }; |
|
|
|
await this.getUserId(params); |
|
|
|
await this.getToken(); |
|
|
|
// const userId = '1387952026067013632'; |
|
|
|
// const params = { userId }; |
|
|
|
// await this.getUserId(params); |
|
|
|
// await this.getToken(); |
|
|
|
if (localStorage.getItem('patientId')) { |
|
|
|
this.setPatientId(localStorage.getItem('patientId')); |
|
|
|
} |
|
|
|