diff --git a/electron/config/config.default.js b/electron/config/config.default.js index f69287f..b6ca9a2 100644 --- a/electron/config/config.default.js +++ b/electron/config/config.default.js @@ -29,7 +29,7 @@ module.exports = (appInfo) => { minWidth: 400, minHeight: 300, webPreferences: { - webSecurity: false, + //webSecurity: false, contextIsolation: false, // false -> 可在渲染进程中使用electron的api,true->需要bridge.js(contextBridge) nodeIntegration: true, //preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'), diff --git a/frontend/src/views/example/hello/Index.vue b/frontend/src/views/example/hello/Index.vue index 76f7925..a86e029 100644 --- a/frontend/src/views/example/hello/Index.vue +++ b/frontend/src/views/example/hello/Index.vue @@ -15,15 +15,8 @@ export default { data() { - return { - test: '', - }; + return {}; }, - methods: { - test () { - // - }, - } }; - +
diff --git a/public/html/loading.html b/public/html/loading.html new file mode 100644 index 0000000..9d1520b --- /dev/null +++ b/public/html/loading.html @@ -0,0 +1,94 @@ + + + + + + + + + +