上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 60 下一页
摘要: indexPath:'../publish1',//指定index。html的打包生成路径 assetsDir:'../publish',//指定你的css/js/img/fonts等静态资源文件夹的打包生成路径 阅读全文
posted @ 2020-04-16 23:24 洛晨随风 阅读(2739) 评论(0) 推荐(0)
摘要: 我定义一个user的module import Vue from "vue"; import Vuex from "vuex"; import userStore from "./modules/userStore"; Vue.use(Vuex); const debug = process.env 阅读全文
posted @ 2020-04-16 09:49 洛晨随风 阅读(542) 评论(0) 推荐(0)
摘要: 使用map的简洁写法好像没试出来怎么用,但是常规写法如下: vuex: import Vue from "vue"; import Vuex from "vuex"; import userStore from "./modules/userStore"; Vue.use(Vuex); export 阅读全文
posted @ 2020-04-16 09:46 洛晨随风 阅读(14353) 评论(1) 推荐(0)
摘要: module.exports = { devServer: { //开发环境下设置为编译好以后直接打开浏览器浏览 open: true }, configureWebpack: config => { //调试JS config.devtool = "source-map"; }, css: { / 阅读全文
posted @ 2020-04-02 16:52 洛晨随风 阅读(9177) 评论(0) 推荐(0)
摘要: 以element ui的导航组件为例: 根据router获取当前的url进行判断设置自己的自定义active样式处理,如果有更好的办法,欢迎指出 <template> <el-menu background-color="#545c64" text-color="#fff" > <el-menu-i 阅读全文
posted @ 2020-04-01 19:59 洛晨随风 阅读(591) 评论(0) 推荐(0)
摘要: 直接在子组件使用v-model=“props传递的父属性”是会爆出警告的,也不符合vue 的设计思想,所以可以如下写法: 父组件: <template> <div> <Test1 :curVal="val" @change-val="setVal"/> </div> </template> <scr 阅读全文
posted @ 2020-04-01 16:15 洛晨随风 阅读(776) 评论(0) 推荐(0)
摘要: function GetRandomNum(Min, Max) { var Range = Max - Min; var Rand = Math.random(); return Min + Math.round(Rand * Range); } 阅读全文
posted @ 2020-04-01 16:09 洛晨随风 阅读(693) 评论(0) 推荐(1)
摘要: 点击同一个路由的时候就会报这个错,解决办法本人亲测有效两种: 第一种 this.$router.push('/home',onAbort => { }) 通过加回调函数规避 但是路由多的时候显然是太麻烦。 第二种 const originalPush = VueRouter.prototype.pu 阅读全文
posted @ 2020-03-26 15:45 洛晨随风 阅读(1368) 评论(0) 推荐(0)
摘要: 今天写程序的时候点击路由突然报这个警告,看了一下原来是新建了页面然后还什么都没写就会这样,记录一下以作总结经验 阅读全文
posted @ 2020-03-26 15:33 洛晨随风 阅读(574) 评论(0) 推荐(0)
摘要: { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { 阅读全文
posted @ 2020-03-24 23:06 洛晨随风 阅读(538) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 60 下一页