mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 18:31:06 +03:30
change home
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
<v-toolbar-title >CSSD-DOC</v-toolbar-title>
|
||||
<v-spacer></v-spacer>
|
||||
<div class="my-2">
|
||||
<a href="/dashboard"><v-btn color="black">Login</v-btn></a>
|
||||
<a href="/dashboard" v-if="auth"><v-btn color="black">Dashboard</v-btn></a>
|
||||
<a href="/login" v-else><v-btn color="black">Login</v-btn></a>
|
||||
</div>
|
||||
</v-toolbar>
|
||||
<v-parallax src="img/Static/Intro/bg.jpg" height="600">
|
||||
@@ -162,9 +163,11 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
import { TokenService } from '@/services/auth/storage.service'
|
||||
|
||||
export default {
|
||||
data: () => ({
|
||||
auth : false,
|
||||
items: {
|
||||
items1 : [
|
||||
'Physical Parameters, STEAM',
|
||||
@@ -198,6 +201,9 @@ export default {
|
||||
|
||||
},
|
||||
created(){
|
||||
if(TokenService.getToken()){
|
||||
this.auth = true;
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user