electron-vue上的坑

1.不能使用vuex的原因,據https://yq.aliyun.com/articles/702886這篇文章介紹有兩種方法。但是我自己只能註釋掉 createSharedMutations(),再引入 import ‘./path/to/your/store’ 在src/main.js裏面 。
2.如果在css里加了drag後 點擊事件無效,記得設置no-drag,點擊事件就生效了。
3.elementui中的導航欄和路由的綁定

<el-menu :default-active="'#/GoodsDetail'" class="el-menu-demo" mode="horizontal" @select="handleSelect" :router="true">

  <el-menu-item index='Operation'>  // => 瀏覽器解析路徑#/GoodsDetail/Operation
            運營信息 // :default-active="'#/GoodsDetail'"  默認選中頁爲當前路由
  </el-menu-item>
  <el-menu-item index="Base" >
             基礎信息
  </el-menu-item>
  <el-menu-item index="Detail" >
            詳情信息
  </el-menu-item>
  <el-menu-item index="Picture" >
            商品圖片
  </el-menu-item>
  <el-menu-item index="Discount" >  
            促銷信息
  </el-menu-item>
</el-menu>

4.安裝windows-build-tools 報elifecycle
https://github.com/felixrieseberg/windows-build-tools/issues/20
配置好環境路徑後
或者
https://stackoverflow.com/questions/42308879/npm-err-code-elifecycle

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章