pull/229/head
xiaojunnuo 2024-10-18 19:04:13 +08:00
parent 57d8d48046
commit 0b86de401f
3 changed files with 5 additions and 2 deletions

View File

@ -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) => {

View File

@ -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",

View File

@ -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');
}
});