update 1400-10-09
This commit is contained in:
+9
-2
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
import themeConfig from '@/../themeConfig.js'
|
||||
import jwt from '@/http/requests/auth/jwt/index.js'
|
||||
|
||||
import axios from "@/axios"
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
@@ -72,7 +72,14 @@ export default {
|
||||
},
|
||||
async created() {
|
||||
|
||||
|
||||
try{
|
||||
let {data:{permission}} = await axios.get('/permission/user')
|
||||
await this.$store.dispatch("access/setPermissions", permission)
|
||||
// console.log("user data",this.$store.state.access.permissions)
|
||||
}
|
||||
catch (e) {
|
||||
console.log("eeeee: ",e)
|
||||
}
|
||||
//console.log("this ==> ", this);
|
||||
const dict = {
|
||||
attributes: {
|
||||
|
||||
Reference in New Issue
Block a user