上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 57 下一页
摘要: <template> <el-form ref="form" label-width="100px" :model="model" v-if="model" :rules="rules"> <el-row v-for="(item,index) in formModel" :key="index"> 阅读全文
posted @ 2020-04-28 17:27 洛晨随风 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 直接使用 async settimeout去模拟后台返回或者休眠是不支持的,这时候可以使用promise来完成我们的要求。代码如下: async getInfo(fn) { let ret = await this.getData(() => { this.info = { name: "张三", 阅读全文
posted @ 2020-04-28 15:30 洛晨随风 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: <el-form ref="form" :model="userInfo" label-width="100px" :rules="rules"> <el-row> <el-col :span="12"> <el-form-item label="登陆账号:" prop="loginId"> <el 阅读全文
posted @ 2020-04-27 15:20 洛晨随风 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 我要根据状态判断表格显示input还是label,用了它的autofocus对于这样的来回切换,只有第一次点击有效,后面就不行了,所以改用v-focus自定义指令,问题解决 <div v-if=" 显示输入框 " > <!-- 选中的是当前的格子并且是input类型和可编辑的状态并且是未删除就显示i 阅读全文
posted @ 2020-04-27 10:16 洛晨随风 阅读(3603) 评论(0) 推荐(1) 编辑
摘要: //request拦截 service.interceptors.request.use( request => { let { current } = router.history; if ( store.getters["userStore/getToken"] && current.name 阅读全文
posted @ 2020-04-26 18:47 洛晨随风 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.jb51.net/article/137956.htm 在vue 里面可以定义一个变量 time 大约如下写法: getclick() { if (this.time) { clearTimeout(this.time); } this.time = setTimeo 阅读全文
posted @ 2020-04-22 11:12 洛晨随风 阅读(1816) 评论(0) 推荐(0) 编辑
摘要: indexPath:'../publish1',//指定index。html的打包生成路径 assetsDir:'../publish',//指定你的css/js/img/fonts等静态资源文件夹的打包生成路径 阅读全文
posted @ 2020-04-16 23:24 洛晨随风 阅读(2721) 评论(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 洛晨随风 阅读(529) 评论(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 洛晨随风 阅读(14283) 评论(1) 推荐(0) 编辑
摘要: module.exports = { devServer: { //开发环境下设置为编译好以后直接打开浏览器浏览 open: true }, configureWebpack: config => { //调试JS config.devtool = "source-map"; }, css: { / 阅读全文
posted @ 2020-04-02 16:52 洛晨随风 阅读(9097) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 57 下一页