fix: debug
This commit is contained in:
@@ -48,7 +48,7 @@ pnpm build:dev
|
|||||||
- Ui框架: ElementPlus + Tailwindcss
|
- Ui框架: ElementPlus + Tailwindcss
|
||||||
- Http工具: Axios
|
- Http工具: Axios
|
||||||
|
|
||||||
# 后端功能
|
# 后端功能(可以不用)
|
||||||
|
|
||||||
主要包含登录后的相关操作,若不用后端功能可以忽略该部分
|
主要包含登录后的相关操作,若不用后端功能可以忽略该部分
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// import { reactive } from 'vue'
|
import { rev } from 'vue'
|
||||||
// import { copy } from '@/utils/string'
|
// import { copy } from '@/utils/string'
|
||||||
// const info = reactive({
|
// const info = reactive({
|
||||||
// title: "关于本站",
|
// title: "关于本站",
|
||||||
// })
|
// })
|
||||||
|
const feedBackUrl = import.meta.env.VITE_FEEDBACK_URL
|
||||||
//copy
|
//copy
|
||||||
// const copyRes = async (resStr: string) => {
|
// const copyRes = async (resStr: string) => {
|
||||||
// copy(resStr)
|
// copy(resStr)
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<br>
|
<br>
|
||||||
<p class="font-bold">联系作者/问题反馈</p>
|
<p class="font-bold">联系作者/问题反馈</p>
|
||||||
<br>
|
<br>
|
||||||
<p>反馈中心:<el-link href="https://txc.qq.com/products/619520">https://txc.qq.com/products/619520</el-link></p>
|
<p>反馈中心:<el-link :href="feedBackUrl">{{ feedBackUrl }}</el-link></p>
|
||||||
<br>
|
<br>
|
||||||
<p>邮箱:taoran0796@163.com</p>
|
<p>邮箱:taoran0796@163.com</p>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ onMounted(() => {
|
|||||||
<li class="hover:text-blue-500">
|
<li class="hover:text-blue-500">
|
||||||
<el-button link size="large" @click="collect">收藏本站</el-button>
|
<el-button link size="large" @click="collect">收藏本站</el-button>
|
||||||
</li>
|
</li>
|
||||||
<li class="ml-3" v-if="userStore.token?.length != 0">
|
<li class="ml-3" v-if="userStore.isLogin()">
|
||||||
<!-- userStore.avatar -->
|
<!-- userStore.avatar -->
|
||||||
<el-image class="w-10 h-10 cursor-pointer" fit="cover" :src="(userStore.avatar == '' || userStore.avatar == null || userStore.avatar == undefined) ? defAvatar : userStore.avatar" v-popover="userPopRef"></el-image>
|
<el-image class="w-10 h-10 cursor-pointer" fit="cover" :src="(userStore.avatar == '' || userStore.avatar == null || userStore.avatar == undefined) ? defAvatar : userStore.avatar" v-popover="userPopRef"></el-image>
|
||||||
<el-popover
|
<el-popover
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export const useUserStore = defineStore('user', {
|
|||||||
},
|
},
|
||||||
//获取用户信息
|
//获取用户信息
|
||||||
async userInfo() {
|
async userInfo() {
|
||||||
if (this.token?.length == 0) {
|
if (!this.isLogin()) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//发送请求
|
//发送请求
|
||||||
|
|||||||
Reference in New Issue
Block a user