Browse Source

fix: dashboard api list cache fetching bug

Acathur 5 years ago
parent
commit
9b4642a2cf
1 changed files with 4 additions and 1 deletions
  1. 4 1
      kaifain_v2/store/apigateway.ts

+ 4 - 1
kaifain_v2/store/apigateway.ts

@@ -27,7 +27,10 @@ export const actions = {
     }
   },
 
-  async ['apigateway:apilist:load']({ state, commit }, { force = false}) {
+  async ['apigateway:apilist:load']({ state, commit }, opts?: {
+    force: boolean
+  }) {
+    const { force = false } = opts || {}
     if (!force && state.apiList && Date.now() - state.apiListLastUpdatedAt < 60000) {
       return
     }