mirror of https://github.com/certd/certd
chore:
parent
57d8d48046
commit
0b86de401f
|
@ -43,7 +43,7 @@ const attrs = useAttrs();
|
||||||
const optionsRef = ref([]);
|
const optionsRef = ref([]);
|
||||||
const message = ref("");
|
const message = ref("");
|
||||||
const getOptions = async () => {
|
const getOptions = async () => {
|
||||||
return await doRequest(
|
const res = await doRequest(
|
||||||
{
|
{
|
||||||
type: props.type,
|
type: props.type,
|
||||||
typeName: props.typeName,
|
typeName: props.typeName,
|
||||||
|
@ -56,6 +56,8 @@ const getOptions = async () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
message.value = "";
|
||||||
|
return res;
|
||||||
};
|
};
|
||||||
|
|
||||||
const filterOption = (input: string, option: any) => {
|
const filterOption = (input: string, option: any) => {
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
"better-sqlite3": "^11.1.2",
|
"better-sqlite3": "^11.1.2",
|
||||||
"cache-manager": "^6.1.0",
|
"cache-manager": "^6.1.0",
|
||||||
|
"cos-nodejs-sdk-v5": "^2.14.6",
|
||||||
"cron-parser": "^4.9.0",
|
"cron-parser": "^4.9.0",
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
|
|
|
@ -89,7 +89,7 @@ export class MainConfiguration {
|
||||||
this.app.getMiddleware().insertFirst(async (ctx: IMidwayKoaContext, next: NextFunction) => {
|
this.app.getMiddleware().insertFirst(async (ctx: IMidwayKoaContext, next: NextFunction) => {
|
||||||
await next();
|
await next();
|
||||||
if (ctx.path === '/' || ctx.path === '/index.html') {
|
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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue