{"id":125856,"date":"2020-05-04T02:14:30","date_gmt":"2020-05-03T18:14:30","guid":{"rendered":"http:\/\/4563.org\/?p=125856"},"modified":"2020-05-04T02:14:30","modified_gmt":"2020-05-03T18:14:30","slug":"electron-%e9%a1%b9%e7%9b%ae%e6%83%b3%e8%a6%81%e7%94%a8-vue-%e7%bb%84%e4%bb%b6%ef%bc%8c%e5%ba%94%e8%af%a5%e9%9c%80%e8%a6%81%e6%80%8e%e4%b9%88%e9%85%8d%e7%bd%ae%e5%91%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=125856","title":{"rendered":"electron \u9879\u76ee,\u60f3\u8981\u7528 vue \u7ec4\u4ef6\uff0c\u5e94\u8be5\u9700\u8981\u600e\u4e48\u914d\u7f6e\u5462"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  electron \u9879\u76ee,\u60f3\u8981\u7528 vue \u7ec4\u4ef6\uff0c\u5e94\u8be5\u9700\u8981\u600e\u4e48\u914d\u7f6e\u5462               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CurChen <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u9879\u76ee\u524d\u7aef\u662f\u57fa\u4e8e electron \u5f00\u53d1\u7684\uff0c\u9875\u9762\u6e32\u67d3\u4e00\u76f4\u7528\u7684\u90fd\u662f html\uff0c\u73b0\u5728\u60f3\u7528 vue \u91cc\u9762\u4e00\u4e9b\u7ec4\u4ef6\uff0c\u8ba9\u524d\u7aef\u770b\u8d77\u6765\u66f4\u8212\u670d\u70b9\u3002<\/p>\n<p>\u9700\u6c42\uff1a\u73b0\u5728\u6211\u6709\u4e00\u4e2a electron \u9879\u76ee\uff0c\u4e00\u4e2a.vue \u6587\u4ef6\uff0c\u6211\u5e94\u8be5\u600e\u4e48\u914d\u7f6e\uff0c\u624d\u80fd\u628a vue \u6587\u4ef6\u96c6\u6210\u5230\u9879\u76ee\u4e2d\u53bb\u5462<\/p>\n<p>\u5c1d\u8bd5\u4e86 electron \u4e0e vue \u7684 script \u8fdb\u884c\u901a\u4fe1\uff0c\u4f46\u662f\u4f1a\u62a5\u9519\uff1aThe server responded with a non-JavaScript MIME type of \u201ctext\/plain\u201d\uff0c\u662f\u4e0d\u662f\u9879\u76ee\u7684\u4e00\u4e9b\u914d\u7f6e\u9700\u8981\u505a\u8c03\u6574\uff1f      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1998990\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Licsber <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9053\u7406\u6211\u90fd\u61c2 \u53ef\u662f\u4e3a\u5565\u53d1\u5728 Node.js \u8282\u70b9\uff08\u624d\u53d1\u73b0\u597d\u50cf\u6ca1\u6709\u4e13\u95e8\u7684 electron \u8282\u70b9<\/p>\n<p>Vue \u672c\u8eab\u53ef\u4ee5\u53ea\u5f15\u5165\u4e00\u4e2a js \u76f4\u63a5\u65b0\u5efa\u4e2a\u9875\u9762\u653e\u8fdb\u53bb\u4e0d\u5c31\u597d\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998991\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CurChen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Licsber \u5c1d\u8bd5\u8fc7\u65b0\u5efa html\uff0c\u4f46\u662f vue \u91cc\u9762\u7684\u6807\u7b7e el-table html \u597d\u50cf\u65e0\u6cd5\u89e3\u6790 pass<br \/>\u5c1d\u8bd5\u8fc7\u65b0\u5efa vue \u6587\u4ef6\uff0c\u7136\u540e\u5728 html \u91cc\u7684 js \u91cc new Vue \u52a0\u8f7d\uff0c\u4f1a\u62a5\u9519 The server responded with a non-JavaScript MIME type of \u201ctext\/plain\u201d\uff0c <br \/>\u60f3\u95ee\u4e0b \u4f60\u6240\u8bf4\u7684\u65b0\u5efa\u4e2a\u9875\u9762\u662f\u65b0\u5efa\u4ec0\u4e48\u9875\u9762\u5462\uff0c\u521a\u63a5\u89e6\u524d\u7aef\u65b0\u624b\u5c0f\u767d\uff0c\u89c1\u8c05                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998992\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cheeto <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             electron \u7684\u914d\u7f6e\u6587\u4ef6\u5165\u53e3\u5199 vue \u6253\u5305\u7f16\u8bd1\u540e\u7684\u8f93\u51fa\u6587\u4ef6\u5c31\u53ef\u4ee5\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998993\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : karnaugh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CurChen \u5c31\u50cf\u4f7f\u7528 jquery \u4e00\u6837\uff0c\u7528 script \u6807\u7b7e\u5f15\u5165 vue.js \u6587\u4ef6\uff0c\u7136\u540e\u6309\u7167\u5b98\u7f51\u6587\u6863\u7528\u5c31\u884c\u4e86\uff0c<br \/>https:\/\/cn.vuejs.org\/v2\/guide\/#%E8%B5%B7%E6%AD%A5<\/p>\n<p>\u5982\u679c\u60f3\u7528 .vue \u6587\u4ef6\uff0c\u6839\u636e\u4f60\u76ee\u524d\u8868\u73b0\u51fa\u6765\u7684\u6c34\u5e73\u3002\u3002\u3002\u8fd8\u662f\u76f4\u63a5\u627e\u4e2a electron-vue \u9879\u76ee\u628a\u4f60\u4eec\u4ee3\u7801\u79fb\u8fc7\u53bb\u53ef\u80fd\u8981\u7a33\u59a5\u70b9\u5427 https:\/\/simulatedgreg.gitbooks.io\/electron-vue\/content\/cn\/                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998994\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Hanggi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u6709\u4e2a angular + electron \u7684\u811a\u624b\u67b6\uff0c\u652f\u6301\u70ed\u66f4\u65b0\uff0c\u8981\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998995\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Marven <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/SimulatedGREG\/electron-vue<\/p>\n<p>https:\/\/github.com\/nklayman\/vue-cli-plugin-electron-builder                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998996\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Licsber <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CurChen #2 \u6211\u8bf4\u7684\u5c31\u662f 4 \u7684\u7b2c\u4e00\u79cd\u505a\u6cd5 \u65b0\u5efa\u4e00\u4e2a html \u7136\u540e\u628a.vue \u6587\u4ef6\u91cc\u7684\u5185\u5bb9\u5206\u4e09\u90e8\u5206\uff08 template -&gt; html.body \uff09 (script -&gt; script) (css -&gt; css) \u653e\u8fdb\u53bb \u5728 script \u91cc\u65b0\u5efa\u4e00\u4e2a Vue \u7684\u5b9e\u4f8b \u5c31\u53ef\u4ee5\u76f4\u63a5\u7528\u4e86<\/p>\n<p>\u8fdb\u9636\u5c31\u53ef\u4ee5\u76f4\u63a5\u62ff\u73b0\u6210\u7684\u811a\u624b\u67b6\u76f4\u63a5\u653e \u90a3\u6837\u66f4\u65b9\u4fbf                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998997\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CurChen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @karnaugh \u6211\u7528\u4e86\u4f60\u6240\u8bf4\u7684 1 \u65b9\u6cd5\uff0c\u5efa\u4e86\u4e00\u4e2a html \u6587\u4ef6\uff0c\u5355\u72ec\u8fd0\u884c html \u5f97\u5230\u4e86\u6211\u60f3\u8981\u7684\u6548\u679c\uff0c\u4f46\u662f\u96c6\u6210\u5230 electron \u540e\u4f9d\u7136\u4f1a\u62a5\u9519\uff1a<\/p>\n<p>[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.<\/p>\n<p>\u6240\u4ee5\u8bf4\u5e94\u8be5\u8fd8\u662f\u9700\u8981\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u4f46\u662f\u6211\u8fd9\u4e2a\u9879\u76ee\u662f\u7eaf electron \u9879\u76ee\uff0c\u4e0a\u9762\u62a5\u9519\u6211\u6240\u641c\u7d22\u5230\u7684\u89e3\u51b3\u65b9\u6848\u5728\u6211\u8fd9\u91cc\u5e76\u4e0d\u9002\u7528\uff0c\u6240\u4ee5\u8bf4\uff0c\u7eaf electron \u9879\u76ee\u60f3\u8981\u7528 vue \u96be\u9053\u5fc5\u987b\u8981\u914d\u7f6e\u73af\u5883\u5417                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998998\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : karnaugh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CurChen \u8fd9\u662f\u4e2a\u522b\u7684\u95ee\u9898\uff0c\u767e\u5ea6\u4e00\u4e0b\u5c31\u6709\u54af<br \/>https:\/\/blog.csdn.net\/wxl1555\/article\/details\/83187647                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1998999\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : karnaugh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @karnaugh \u8fd9\u662f\u4e2a\uff0c\u522b\u7684\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1999000\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : axihe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4ee5\u524d\u662f\u7528 electron-vue \u5199\u9879\u76ee\u7684\uff0c\u8fd8\u4e0d\u9519\uff0c\u4e0d\u6e05\u695a\u4f60\u8bf4\u7684\u662f\u4e0d\u662f\u8fd9\u79cd\u89e3\u51b3\u65b9\u6848\uff1b<br \/>\u5f00\u59cb\u6211\u4e5f\u662f\u81ea\u5df1\u914d\u7684 Electron+vue \u7684\u6e32\u67d3\u8fdb\u7a0b\uff0c\u7136\u540e\u81ea\u5df1\u641e\u4e3b\u8fdb\u7a0b\uff1b\u7136\u540e\u641c\u7740\u641c\u7740\u53d1\u73b0\u6709\u4e00\u4e2a electron-vue\uff0c\u5c31\u76f4\u63a5\u7528\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1999001\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ETiV <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u662f\u6574\u4e2a\u9875\u9762\u90fd\u662f Vue App<\/p>\n<p>\u4f60\u8981\u4e0d\u8981\u8bd5\u8bd5 HTML + iframe(vue)<\/p>\n<p>&#8212;&#8212;-<\/p>\n<p>\u4f46\u662f\u300c\u8ba9\u524d\u7aef\u770b\u8d77\u6765\u66f4\u8212\u670d\u4e00\u70b9\u300d\uff0c\u4f60\u662f\u4e0d\u662f\u53ea\u8981 css \u5c31\u53ef\u4ee5\u4e86\uff1f\u6839\u672c\u4e0d\u9700\u8981\u7528 Vue \u7684\u7ec4\u4ef6                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1999002\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 12tall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u731c\u4e3b\u53ef\u80fd\u662f\u9700\u8981\u600e\u4e48\u5728\u4e0d\u7528\u811a\u624b\u67b6\u7684\u60c5\u51b5\u4e0b\u5b9e\u73b0 Electron+vue\uff0c\u5e0c\u671b\u540e\u9762\u8fd9\u4e2a\u94fe\u63a5\u5bf9\u4e3b\u6709\u70b9\u5e2e\u52a9\uff1a https:\/\/www.jianshu.com\/p\/42e11515c10f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1999003\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Chenamy2017 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5165\u5751 Electron \u65f6\u76f4\u63a5\u7528\u7684 electron-vue \u811a\u624b\u67b6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>electron \u9879\u76ee,\u60f3\u8981\u7528 v&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/125856"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125856"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/125856\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125856"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}