I have a get request that detects if user is Admin or not.
My problem is that I want to display a button using v-if
to check if it's true or false. By default the value is set to false
.
Data
![enter image description here](https://i.stack.imgur.com/DEWFA.png)
Then we got the button :
![enter image description here](https://i.stack.imgur.com/3IFcJ.png)
And the .then
in beforeCreate
:
![enter image description here](https://i.stack.imgur.com/rOtAZ.png)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…