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/issue

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值