Browse Source

upd: theme sass cdn request

richard1015 3 years ago
parent
commit
3ab1cbd71f
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/sites/assets/util/helper.ts

+ 3 - 5
src/sites/assets/util/helper.ts

@@ -175,11 +175,9 @@ export const useThemeEditor = function () {
       } as any;
       const customUrl = param && source[param.replace('/', '')];
       if (customUrl) {
-        Promise.all([
-          getSassVariables(customUrl),
-          loadScript('https://cdnout.com/sass.js/sass.sync.min.js'),
-          getRawSassStyle()
-        ]);
+        loadScript('https://cdnout.com/sass.js/sass.sync.min.js').then((res) => {
+          Promise.all([getSassVariables(customUrl), getRawSassStyle()]);
+        });
         store.init = true;
       }
     }