1
0
Эх сурвалжийг харах

fix: use NewScript for "+" in dashboard

tophf 3 жил өмнө
parent
commit
9428430738

+ 1 - 1
src/options/views/tab-installed.vue

@@ -408,7 +408,7 @@ export default {
     onHashChange() {
       const [tab, id] = this.store.route.paths;
       if (id === '_new') {
-        this.script = {};
+        sendCmdDirectly('NewScript').then(res => { this.script = res.script; });
       } else {
         const nid = id && +id || null;
         this.script = nid && this.scripts.find(script => script.props.id === nid);