panqiuyao 11 hónapja
szülő
commit
d4e1678db8
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      electron/controller/utils.js

+ 4 - 1
electron/controller/utils.js

@@ -25,11 +25,14 @@ class UtilsController extends Controller {
    * upload
    */
   async openFileFolder (params) {
-   // const result = await Services.get('example').test('electron');
+    // const result = await Services.get('example').test('electron');
     Log.info(params)
     Log.info(decodeURIComponent(params))
     shell.openPath(params);
   }
+  async shellFun (params) {
+    shell[params.action](params.params)
+  }
 }
 
 UtilsController.toString = () => '[class ExampleController]';