提交 | 用户 | age
|
2a61f6
|
1 |
<template> |
L |
2 |
<div class="app-container"> |
f72166
|
3 |
<h1 style="text-align: center;margin-top: 5%">欢迎来到“项目名称"</h1> |
2a61f6
|
4 |
</div> |
L |
5 |
</template> |
|
6 |
|
|
7 |
<script> |
|
8 |
|
|
9 |
import { getUserData } from '@/utils/auth' // get token from session |
|
10 |
export default { |
|
11 |
name: 'Dashboard', |
|
12 |
data() { |
|
13 |
return { |
|
14 |
name: '' |
|
15 |
} |
|
16 |
}, |
|
17 |
mounted() { |
|
18 |
this.init() |
|
19 |
}, |
|
20 |
methods: { |
|
21 |
init() { |
|
22 |
console.log(getUserData()) |
|
23 |
} |
|
24 |
} |
|
25 |
} |
|
26 |
</script> |
|
27 |
|
|
28 |
<style lang="scss" scoped> |
|
29 |
</style> |