diff --git a/api/cms/cmsNavigation/model/index.ts b/api/cms/cmsNavigation/model/index.ts index 39deea9..66529e2 100644 --- a/api/cms/cmsNavigation/model/index.ts +++ b/api/cms/cmsNavigation/model/index.ts @@ -1,4 +1,5 @@ import type { PageParam } from '@/api'; +import type {CmsDesign} from "~/api/cms/cmsDesign/model"; /** * 网站导航记录表 @@ -77,6 +78,7 @@ export interface CmsNavigation { disabled?: boolean; label?: string; value?: number; + design?: CmsDesign; } /** diff --git a/composables/configState.ts b/composables/configState.ts index bee2c09..74782dd 100644 --- a/composables/configState.ts +++ b/composables/configState.ts @@ -1,37 +1,35 @@ import { useState } from '#imports'; -import type { Config } from '~/types/global'; -import type {Website} from "~/api/cms/website/model"; -import type {Navigation} from "~/api/cms/navigation/model"; +import type {CmsWebsite} from "~/api/cms/cmsWebsite/model"; +import type {CmsNavigation} from "~/api/cms/cmsNavigation/model"; import type {User} from "~/api/system/user/model"; import type {Company} from "~/api/system/company/model"; -import type {MyCart, ShopCart} from "~/api/shop/shopCart/model"; // 网站信息 export const useWebsite = () => - useState('website', () => { + useState('website', () => { return {}; }); // 参数配置 export const useConfigInfo = () => - useState('config', () => { + useState('config', () => { return {}; }); // 主导航 export const useMenu = () => - useState('menu', () => { + useState('menu', () => { return []; }); // 副导航 export const useSubMenu = () => - useState('subMenu', () => { + useState('subMenu', () => { return []; }); // 页面元素 -export const useForm = () => useState('form', () => { +export const useForm = () => useState('form', () => { return {}; }); @@ -73,7 +71,7 @@ export const useCompany = () => export const useShowLogin = () => useState('showLogin',() => false) // 购物车状态 -export const useCart = () => useState('cart', () => { +export const useCart = () => useState('cart', () => { return { num: 1, type: 1, diff --git a/nuxt.config.ts b/nuxt.config.ts index 7ad9dfd..53090e6 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -27,11 +27,11 @@ export default defineNuxtConfig({ } }, devServer: { - port: 10301 + port: 10304 }, runtimeConfig: { public: { - tenantId: 10301, + tenantId: 10304, // 开发环境配置 // apiServer: 'http://127.0.0.1:9002/api', // 生产环境 diff --git a/pages/components/AboutUs.vue b/pages/components/AboutUs.vue index ea46967..599e900 100644 --- a/pages/components/AboutUs.vue +++ b/pages/components/AboutUs.vue @@ -1,5 +1,5 @@