no message
This commit is contained in:
@@ -30,7 +30,18 @@ let props = defineProps({
|
||||
isNeedIssue: Boolean,
|
||||
})
|
||||
|
||||
const goIssue = () => router.push("/publish")
|
||||
let isNeedLogin = inject("isNeedLogin")
|
||||
const goLogin = inject("goLogin")
|
||||
|
||||
const goIssue = () => {
|
||||
if (isNeedLogin.value) {
|
||||
goLogin()
|
||||
return
|
||||
}
|
||||
|
||||
// router.push(`/publish`)
|
||||
goToURL(`/publish`)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
Reference in New Issue
Block a user