|
@@ -36,7 +36,9 @@ import { useRouter } from 'vue-router'
|
|
|
import { useSystemStore } from '../stores/system'
|
|
import { useSystemStore } from '../stores/system'
|
|
|
import { accAdd, accMul } from '../plugins/calc'
|
|
import { accAdd, accMul } from '../plugins/calc'
|
|
|
import toast from '@/utils/toast'
|
|
import toast from '@/utils/toast'
|
|
|
|
|
+import { useI18n } from 'vue-i18n'
|
|
|
|
|
|
|
|
|
|
+const { t } = useI18n()
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
info: {
|
|
info: {
|
|
|
type: Object,
|
|
type: Object,
|
|
@@ -64,7 +66,7 @@ const notStock = computed(() => {
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const goDetail = () => {
|
|
const goDetail = () => {
|
|
|
if (notStock.value) {
|
|
if (notStock.value) {
|
|
|
- toast(this.$t('common.notAvailable') + '...')
|
|
|
|
|
|
|
+ toast(t('common.notAvailable') + '...')
|
|
|
} else {
|
|
} else {
|
|
|
router.push({
|
|
router.push({
|
|
|
path: '/productDetail',
|
|
path: '/productDetail',
|