fix(projects): 修复store的部分字段引用错误

This commit is contained in:
‘chen.home’ 2022-08-13 00:55:11 +08:00
parent 5e9e3d740e
commit 19bd363ac6
2 changed files with 3 additions and 10 deletions

View File

@ -2,7 +2,7 @@
<n-dropdown trigger="click" :options="options" @select="handleSelect"> <n-dropdown trigger="click" :options="options" @select="handleSelect">
<HeaderButton> <HeaderButton>
<n-avatar round size="large" src="https://z3.ax1x.com/2021/10/29/5jnWgf.jpg" /> <n-avatar round size="large" src="https://z3.ax1x.com/2021/10/29/5jnWgf.jpg" />
{{ authStore.name }} {{ authStore.userInfo?.realName }}
</HeaderButton> </HeaderButton>
</n-dropdown> </n-dropdown>
</template> </template>

View File

@ -1,14 +1,7 @@
<template> <template>
<div text-center c-yellow>I prove that you have made the ju mp test2. {{ userStore.name }}</div> <div text-center c-yellow>I prove that you have made the ju mp test2.</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts"></script>
import { useRouter } from 'vue-router';
import { useAuthStore } from '@/store';
const userStore = useAuthStore();
const router = useRouter();
</script>
<style scoped></style> <style scoped></style>