li.shaoyi 2 rokov pred
rodič
commit
eb2b3337ed
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/services/index.ts

+ 1 - 1
src/services/index.ts

@@ -72,7 +72,7 @@ export default new (class {
      * 服务初始化完成时触发
      */
     onReady() {
-        return new Promise((resolve) => {
+        return new Promise<typeof this.config>((resolve) => {
             this.onload.finally(() => {
                 if (this.isReady) {
                     resolve(this.onload)