22/5/1404
This commit is contained in:
@@ -3766,12 +3766,12 @@ const _routes = [
|
||||
{
|
||||
name: void 0 ,
|
||||
path: "/posts",
|
||||
component: () => import('./posts-BIh3HlMA.mjs'),
|
||||
component: () => import('./posts-kh6xRAxR.mjs'),
|
||||
children: [
|
||||
{
|
||||
name: "posts",
|
||||
path: "",
|
||||
component: () => import('./index-CMdiatmb.mjs')
|
||||
component: () => import('./index-BBqtp-43.mjs')
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -3814,12 +3814,12 @@ const _routes = [
|
||||
{
|
||||
name: "home",
|
||||
path: "/home",
|
||||
component: () => import('./index-DlOP70W8.mjs')
|
||||
component: () => import('./index-CE90j7D1.mjs')
|
||||
},
|
||||
{
|
||||
name: "user",
|
||||
path: "/user",
|
||||
component: () => import('./index-CiGuHXPW.mjs')
|
||||
component: () => import('./index-CA8-3-yQ.mjs')
|
||||
},
|
||||
{
|
||||
name: "saved-posts",
|
||||
@@ -3922,14 +3922,14 @@ const _routes = [
|
||||
{
|
||||
name: "user_detail-id",
|
||||
path: "/user_detail/:id()",
|
||||
component: () => import('./_id_-9hvbvePc.mjs')
|
||||
component: () => import('./_id_-6FML1Abh.mjs')
|
||||
},
|
||||
{
|
||||
name: "add-product",
|
||||
path: "/add/product",
|
||||
meta: __nuxt_page_meta$l || {},
|
||||
redirect: { "name": "add-product-inputProduct" },
|
||||
component: () => import('./index-CEXmANOq.mjs')
|
||||
component: () => import('./index-Drg8wsf8.mjs')
|
||||
},
|
||||
{
|
||||
name: "search-main",
|
||||
@@ -3940,7 +3940,7 @@ const _routes = [
|
||||
name: "add-story-infStory",
|
||||
path: "/add/story/infStory",
|
||||
meta: __nuxt_page_meta$k || {},
|
||||
component: () => import('./infStory-CqbFVOUQ.mjs')
|
||||
component: () => import('./infStory-C-sx6H42.mjs')
|
||||
},
|
||||
{
|
||||
name: "user-store_request",
|
||||
@@ -3957,13 +3957,13 @@ const _routes = [
|
||||
{
|
||||
name: "product_detail-id",
|
||||
path: "/product_detail/:id()",
|
||||
component: () => import('./_id_-DQyecS-r.mjs')
|
||||
component: () => import('./_id_-CVaDo7h_.mjs')
|
||||
},
|
||||
{
|
||||
name: "add-story-inputStory",
|
||||
path: "/add/story/inputStory",
|
||||
meta: __nuxt_page_meta$h || {},
|
||||
component: () => import('./inputStory-UsBrgOWB.mjs')
|
||||
component: () => import('./inputStory-Dg9SAM1w.mjs')
|
||||
},
|
||||
{
|
||||
name: "user-statistics_list",
|
||||
@@ -4007,7 +4007,7 @@ const _routes = [
|
||||
name: "add-product-infProduct",
|
||||
path: "/add/product/infProduct",
|
||||
meta: __nuxt_page_meta$a || {},
|
||||
component: () => import('./infProduct-s2pXcG60.mjs')
|
||||
component: () => import('./infProduct-NNiXANd4.mjs')
|
||||
},
|
||||
{
|
||||
name: "message-detail_message",
|
||||
@@ -4026,37 +4026,37 @@ const _routes = [
|
||||
name: "edit-product-id",
|
||||
path: "/edit/product/:id()",
|
||||
meta: __nuxt_page_meta$7 || {},
|
||||
component: () => import('./index-FC6nLB5I.mjs')
|
||||
component: () => import('./index-e2VwoYma.mjs')
|
||||
},
|
||||
{
|
||||
name: "add-product-inputProduct",
|
||||
path: "/add/product/inputProduct",
|
||||
meta: __nuxt_page_meta$6 || {},
|
||||
component: () => import('./inputProduct-DCbYoUzl.mjs')
|
||||
component: () => import('./inputProduct-CX5oLLLi.mjs')
|
||||
},
|
||||
{
|
||||
name: "edit-story-id-infStory",
|
||||
path: "/edit/story/:id()/infStory",
|
||||
meta: __nuxt_page_meta$5 || {},
|
||||
component: () => import('./infStory-CVJlY8VY.mjs')
|
||||
component: () => import('./infStory-DVynDU_n.mjs')
|
||||
},
|
||||
{
|
||||
name: "edit-story-id-inputStory",
|
||||
path: "/edit/story/:id()/inputStory",
|
||||
meta: __nuxt_page_meta$4 || {},
|
||||
component: () => import('./inputStory-BrwNUpVK.mjs')
|
||||
component: () => import('./inputStory-DGr4Mt2y.mjs')
|
||||
},
|
||||
{
|
||||
name: "edit-product-id-infProduct",
|
||||
path: "/edit/product/:id()/infProduct",
|
||||
meta: __nuxt_page_meta$3 || {},
|
||||
component: () => import('./infProduct-Co6tzjTh.mjs')
|
||||
component: () => import('./infProduct-CX45ttV1.mjs')
|
||||
},
|
||||
{
|
||||
name: "edit-product-id-inputProduct",
|
||||
path: "/edit/product/:id()/inputProduct",
|
||||
meta: __nuxt_page_meta$2 || {},
|
||||
component: () => import('./inputProduct-CWaP91sd.mjs')
|
||||
component: () => import('./inputProduct-0GMxTtmL.mjs')
|
||||
},
|
||||
{
|
||||
name: "add-product-excel-infProductExcel",
|
||||
@@ -15738,7 +15738,10 @@ const useCartStore = defineStore("cart", () => {
|
||||
let productCount;
|
||||
if (productItem) {
|
||||
if (productItem.type === "variant") {
|
||||
variantItem = (_a = productItem == null ? void 0 : productItem.variants) == null ? void 0 : _a.find((x) => cartItem.variant.id === x.id);
|
||||
variantItem = (_a = productItem == null ? void 0 : productItem.variants) == null ? void 0 : _a.find((x) => {
|
||||
var _a2;
|
||||
return ((_a2 = cartItem.variant) == null ? void 0 : _a2.id) === x.id;
|
||||
});
|
||||
productCount = variantItem == null ? void 0 : variantItem.stock;
|
||||
} else {
|
||||
productCount = productItem == null ? void 0 : productItem.count;
|
||||
@@ -15946,11 +15949,7 @@ const checkUsername = async (val) => {
|
||||
};
|
||||
const deleteUser = async (id) => {
|
||||
try {
|
||||
await supabaseService.fetch("users", "delete", {
|
||||
field: "id",
|
||||
value: id
|
||||
});
|
||||
await supabaseService.deleteUser(id);
|
||||
return await myAxios.post(`/auth/delete-user/${id}`);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user