状态码报错
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {authority} from '@config/getData2.js'
|
||||
import {handRequest, authority} from '@config/getData2.js'
|
||||
export default {
|
||||
name: 'Home',
|
||||
data () {
|
||||
@@ -111,6 +111,7 @@ export default {
|
||||
document.getElementsByTagName('body')[0].className = 'bgwhite'
|
||||
},
|
||||
created () {
|
||||
// this._handRequest()
|
||||
this._authority()
|
||||
},
|
||||
// beforeDestroy () {
|
||||
@@ -140,6 +141,12 @@ export default {
|
||||
}
|
||||
this.$router.push(e.path.substr(2))
|
||||
},
|
||||
async _handRequest () {
|
||||
let res = await handRequest()
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
}
|
||||
},
|
||||
async _authority () {
|
||||
let accountId = this.$store.getters.userInfo !== '' ? JSON.parse(this.$store.getters.userInfo).account_id : ''
|
||||
let res = await authority(accountId)
|
||||
|
||||
Reference in New Issue
Block a user