Browse Source

试题相关

master
aBin 4 years ago
parent
commit
ec37669fa3
  1. 16
      src/App.vue

16
src/App.vue

@ -1,7 +1,7 @@
<template> <template>
<a-config-provider :locale="zh_CN"> <a-config-provider :locale="zh_CN">
<div class="d-flex flex-row flex-nowrap" id="app"> <div class="d-flex flex-row flex-nowrap" id="app">
<btn-con /> <!-- <btn-con /> -->
<router-view class="flex-1 bg pa-3"></router-view> <router-view class="flex-1 bg pa-3"></router-view>
</div> </div>
</a-config-provider> </a-config-provider>
@ -10,12 +10,12 @@
<script> <script>
import { mapState, mapActions, mapMutations } from 'vuex'; import { mapState, mapActions, mapMutations } from 'vuex';
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'; 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'; import { getHId } from 'config/api';
export default { export default {
name: 'App', name: 'App',
components: { BtnCon }, // components: { BtnCon },
data() { data() {
return { zh_CN }; return { zh_CN };
}, },
@ -32,11 +32,11 @@ export default {
} }
}, },
}, },
async created() { created() {
const userId = '1218763410024566784'; // const userId = '1218763410024566784';
const params = { userId }; // const params = { userId };
await this.getUserId(params); // await this.getUserId(params);
await this.getToken(); // await this.getToken();
if (localStorage.getItem('patientId')) { if (localStorage.getItem('patientId')) {
this.setPatientId(localStorage.getItem('patientId')); this.setPatientId(localStorage.getItem('patientId'));
} }

Loading…
Cancel
Save