我的档案查看完成

This commit is contained in:
2020-10-10 10:57:00 +08:00
parent a67333be23
commit 32361d6629
5 changed files with 64 additions and 21 deletions

View File

@@ -8,10 +8,12 @@
<script lang="ts">
import { defineComponent } from 'vue';
import store from './store';
import { getValue } from './utils/common';
export default defineComponent({
setup(){
if(store.state.islogin){
if(getValue('token')){
store.commit("login")
store.dispatch("setUserInfo");
}
}