This commit is contained in:
yangmf_0726 committed 2025-10-10 16:00:24 +08:00
1 parent 3798daeb54
commit 71cdf53b68
2 files changed
+9 -7

No files matched your search

+7 -5
View File
@@ -26,7 +26,7 @@ export interface Sku {
salesCount?: number // 商品销量
cabinetChannel?: string // 货道或柜门编号
cabinetType?: string // 通道类型
purchaseBizType?:string
purchaseBizType?: string
}
export interface GiveCouponTemplate {
@@ -68,13 +68,15 @@ export interface Spu {
// 获得 Spu 列表
export const getSpuPage = (params: PageParam) => {
// /product/spu/page
return request.get({ url: '/product/spu/pageWithCreator',params:{
...params
}})
return request.get({
url: '/product/spu/pageWithCreator', params: {
...params
}
})
}
// 获得 Spu 列表 tabsCount
export const getTabsCount = (types?: number) => {
export const getTabsCount = (types: number = 0) => {
return request.get({ url: `/product/spu/get-count?types=${types}` })
}
+2 -2
View File
@@ -1,11 +1,11 @@
import type { App } from 'vue'
import type { RouteRecordRaw } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'
import remainingRouter from './modules/remaining'
// 创建路由实例
const router = createRouter({
history: createWebHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带#
history: createWebHashHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带#
strict: true,
routes: remainingRouter as RouteRecordRaw[],
scrollBehavior: () => ({ left: 0, top: 0 })