apply debug changes
This commit is contained in:
@@ -14,9 +14,13 @@
|
||||
const { btns } = inject('init')
|
||||
const product = inject('data')
|
||||
const { dialog } = inject('service')
|
||||
const token = useCookie('token')
|
||||
const router = useRouter()
|
||||
|
||||
const handleClick = () => {
|
||||
dialog.show(resolveComponent('ProductCommentDialogForm'), product)
|
||||
if (token.value)
|
||||
dialog.show(resolveComponent('ProductCommentDialogForm'), product)
|
||||
else router.push('/auth/login')
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user