加入点击发布 点赞 评论等打开弹窗
This commit is contained in:
@@ -83,8 +83,18 @@ watchEffect(() => {
|
||||
// const goIndex = () => {
|
||||
// // router.push(`/index.html`)
|
||||
// }
|
||||
|
||||
let openAttest = inject("openAttest");
|
||||
const realname = inject("realname");
|
||||
let user = inject("userInfo");
|
||||
|
||||
// 点击发布
|
||||
const goPublish = () => {
|
||||
if (realname.value == 0 && user.value.uin > 0) {
|
||||
openAttest();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isNeedLogin.value) {
|
||||
goLogin()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user