diff --git a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue index 0b1541eb..3ea47918 100644 --- a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue +++ b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue @@ -43,7 +43,7 @@ const attrs = useAttrs(); const optionsRef = ref([]); const message = ref(""); const getOptions = async () => { - return await doRequest( + const res = await doRequest( { type: props.type, typeName: props.typeName, @@ -56,6 +56,8 @@ const getOptions = async () => { } } ); + message.value = ""; + return res; }; const filterOption = (input: string, option: any) => { diff --git a/packages/ui/certd-server/package.json b/packages/ui/certd-server/package.json index 447d29aa..e89be5fd 100644 --- a/packages/ui/certd-server/package.json +++ b/packages/ui/certd-server/package.json @@ -56,6 +56,7 @@ "bcryptjs": "^2.4.3", "better-sqlite3": "^11.1.2", "cache-manager": "^6.1.0", + "cos-nodejs-sdk-v5": "^2.14.6", "cron-parser": "^4.9.0", "dayjs": "^1.11.7", "form-data": "^4.0.0", diff --git a/packages/ui/certd-server/src/configuration.ts b/packages/ui/certd-server/src/configuration.ts index 90c02700..f90f3a88 100644 --- a/packages/ui/certd-server/src/configuration.ts +++ b/packages/ui/certd-server/src/configuration.ts @@ -89,7 +89,7 @@ export class MainConfiguration { this.app.getMiddleware().insertFirst(async (ctx: IMidwayKoaContext, next: NextFunction) => { await next(); if (ctx.path === '/' || ctx.path === '/index.html') { - ctx.response.set('Cache-Control', 'public,max-age=60'); + ctx.response.set('Cache-Control', 'public,max-age=0'); } });