diff --git a/.env.example b/.env.example index 4f95a49..5d8152a 100644 --- a/.env.example +++ b/.env.example @@ -1,12 +1,12 @@ # Tenant / headers # - TenantId header will be sent on every request. # - Authorization header is taken from client storage (AccessToken) and forwarded by the Nuxt proxy. -NUXT_PUBLIC_TENANT_ID=10398 +NUXT_PUBLIC_TENANT_ID=10586 # Upstream APIs (required) NUXT_PUBLIC_SERVER_API_BASE=https://server.websoft.top/api NUXT_PUBLIC_MODULES_API_BASE=https://cms-api.websoft.top/api - + # Optional (only if file server is not the same origin as SERVER_API_BASE) # Defaults to the origin of `NUXT_PUBLIC_SERVER_API_BASE` (e.g. https://server.websoft.top) # NUXT_PUBLIC_FILE_SERVER_BASE=https://file.wsdns.cn diff --git a/app/components/SiteFooter.vue b/app/components/SiteFooter.vue index b81bc18..d72fa1f 100644 --- a/app/components/SiteFooter.vue +++ b/app/components/SiteFooter.vue @@ -39,7 +39,7 @@ diff --git a/app/config/setting.ts b/app/config/setting.ts index 3f01918..cec79ca 100644 --- a/app/config/setting.ts +++ b/app/config/setting.ts @@ -3,5 +3,5 @@ export const MODULES_API_URL = '/api/_modules' export const FILE_SERVER = '/api/_file' // Some endpoints use this as a special TenantId override (defaults to current tenant) -export const TEMPLATE_ID = '10398' +export const TEMPLATE_ID = '10586' diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 0a574ac..647574b 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -54,7 +54,7 @@ if (import.meta.client) { + diff --git a/app/pages/qr-confirm.vue b/app/pages/qr-confirm.vue index ae7c1e0..991a3d7 100644 --- a/app/pages/qr-confirm.vue +++ b/app/pages/qr-confirm.vue @@ -57,7 +57,7 @@ const userInfo = ref(null) const confirmLoading = ref(false) const cancelLoading = ref(false) -const appName = ref('网宿软件') +const appName = ref('行于思破产事务服务平台') const appLogo = ref('/favicon.ico') const deviceInfo = ref({ diff --git a/app/utils/domain.ts b/app/utils/domain.ts index 7da1016..d1b3a67 100644 --- a/app/utils/domain.ts +++ b/app/utils/domain.ts @@ -1,4 +1,4 @@ -export function getTenantId(defaultTenantId = '10398') { +export function getTenantId(defaultTenantId = '10586') { if (!import.meta.client) return defaultTenantId try { return localStorage.getItem('TenantId') || defaultTenantId diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs index c109a9a..8b452c5 100644 --- a/ecosystem.config.cjs +++ b/ecosystem.config.cjs @@ -1,7 +1,7 @@ module.exports = { apps: [ { - name: 'nuxt4-10398', + name: 'nuxt4-10586', cwd: __dirname, script: '.output/server/index.mjs', interpreter: 'node', @@ -9,8 +9,8 @@ module.exports = { env: { NODE_ENV: 'production', NITRO_HOST: '0.0.0.0', - NITRO_PORT: 10398, - PORT: 10398, + NITRO_PORT: 10586, + PORT: 10586, }, }, ], diff --git a/nuxt.config.ts b/nuxt.config.ts index 56443bd..3488101 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -6,7 +6,7 @@ function getOrigin(url: string) { } } -const tenantId = process.env.NUXT_PUBLIC_TENANT_ID || '10398' +const tenantId = process.env.NUXT_PUBLIC_TENANT_ID || '10586' const serverApiBase = process.env.NUXT_PUBLIC_SERVER_API_BASE || process.env.NUXT_PUBLIC_SERVER_API || @@ -42,7 +42,7 @@ export default defineNuxtConfig({ modules: ['@nuxtjs/tailwindcss', './modules/fix-tailwind-postcss'], app: { head: { - titleTemplate: (titleChunk) => (titleChunk ? `${titleChunk} - 网宿软件` : '网宿软件'), + titleTemplate: (titleChunk) => (titleChunk ? `${titleChunk} - 行于思破产事务服务平台` : '行于思破产事务服务平台'), meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, diff --git a/server/api/cms/cms-website/getSiteInfo.get.ts b/server/api/cms/cms-website/getSiteInfo.get.ts index 9de267c..d491b5c 100644 --- a/server/api/cms/cms-website/getSiteInfo.get.ts +++ b/server/api/cms/cms-website/getSiteInfo.get.ts @@ -12,7 +12,7 @@ export default defineEventHandler(async (event) => { getHeader(event, 'tenantid') || config.public.tenantId || config.public.TenantId || - '10398' + '10586' const authorization = getHeader(event, 'authorization') try {