|
@@ -5,19 +5,18 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import HelloWorld from "../../components/HelloWorld.vue";
|
|
|
-import useCounterStore from "../../store/user.js";
|
|
|
-import tokenStore from "../../store/token.js";
|
|
|
-import {setToken} from "../../utils/auth.js";
|
|
|
+import HelloWorld from '../../components/HelloWorld.vue'
|
|
|
+import useCounterStore from '../../store/user.js'
|
|
|
+import tokenStore from '../../store/token.js'
|
|
|
+import { setToken } from '../../utils/auth.js'
|
|
|
export default {
|
|
|
- name: "index",
|
|
|
- components: {HelloWorld},
|
|
|
- setup(){
|
|
|
+ components: { HelloWorld },
|
|
|
+ setup () {
|
|
|
const store = useCounterStore()
|
|
|
const token = tokenStore()
|
|
|
- return {store,token}
|
|
|
+ return { store, token }
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
console.log(this.store.info.name)
|
|
|
console.log(this.token.value)
|
|
|
setToken('asfddas129rq34-rda')
|