评论商品接口有问题
This commit is contained in:
@@ -109,6 +109,7 @@ export const useUserStore = defineStore('user', () => {
|
||||
* 退出登录(不带提示)
|
||||
*/
|
||||
const logout = async () => {
|
||||
if (!userInfo.value) return
|
||||
try {
|
||||
userInfo.value = null
|
||||
await userLogout()
|
||||
|
||||
Reference in New Issue
Block a user