1404/11/06-fix bug in share code

This commit is contained in:
2026-01-26 12:19:29 +03:30
parent 47cb4e105f
commit 9441fc9d0f
7 changed files with 17 additions and 10 deletions
+4 -1
View File
@@ -4,6 +4,9 @@ import type { Product, ProductVariant } from '@/model/product'
import { unref, computed } from 'vue'
// import noImage from '@/assets/img/logo.svg'
import type { UploadedFileInfo } from '@/model/uploadedFileInfo'
import {useConfigStore} from "@/store/configStore";
import {getConfigApp} from "@/utils/config";
const nameProject=getConfigApp('name')
export function useProduct(product: Ref<Product> | Product) {
const title = computed(() => {
@@ -95,7 +98,7 @@ export function useProduct(product: Ref<Product> | Product) {
if (temp && temp.file) {
return temp.file.src
}
return 'GOLD.IR'
return nameProject
}
const collection = computed(() => {