增加造数的页面
This commit is contained in:
27
src/App.vue
Normal file
27
src/App.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { userGetAdvance } from '@/api/Userapi'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
mounted() {
|
||||
const userinfo = JSON.parse(localStorage.getItem('userinfo'))
|
||||
if (userinfo) {
|
||||
userGetAdvance({ userId: userinfo.userId }).then(data => {
|
||||
this.$store.commit('SetRole', data.data.userStatus)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#app{
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user