![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
qq_44915607
这个作者很懒,什么都没留下…
展开
-
el-checkbox-group获取数据渲染完再点击视图不更新
只是视图不更新,但是点击的时候数据是更新的,使用this.$forceUpdate()更新视图<el-checkbox-group v-model="item.checkList" @change="changeCheckList" > <el-checkbox :label="item.name" :value="i原创 2021-04-30 09:38:15 · 1553 阅读 · 2 评论 -
微信公众号禁用右上角分享
// 禁用分享(请求后台接口获取appid,签名,时间戳等数据) getJSSDK () { const that = this const url = api.getJSSDK const routerPath = window.location.href.split('#')[0] console.log(routerPath, 'routerPath') that.$POST(url, { url: routerPath }, res原创 2020-09-29 15:35:35 · 1390 阅读 · 1 评论 -
Vue路由back回退时判断有没有上一个路由
onClickLeft () { if (window.history.length <= 1) { this.$router.push({ path: '/' }) return false } else { this.$router.go(-1) } // 上面都没执行就说明卡在当前页不是最后一条, histroy记录数量大于1,又没有回退记录,只能返回首页, // 如果上面都执行了 页面都原创 2020-09-29 11:09:42 · 2620 阅读 · 0 评论 -
vue项目设置每个页面的title
1、在项目目录下安装vue-wechat-titlenpm i vue-wechat-title -d2、在main.js中 使用vue-wechat-titleimport vueWechatTitle from ‘vue-wechat-title’Vue.use(vueWechatTitle)3、在router的配置中设置{ name: 'GivingRecords', path: '/GivingRecords', component: GivingRe原创 2020-09-29 10:47:56 · 285 阅读 · 0 评论 -
el-dialog中el-select的层级问题
<div class="ContentManagement"><el-dialog title="" :visible.sync="dialogFormVisible"> <el-form-item label="是否上架:" prop="status"> <el-select v-model="ruleForm.status" placeholder="是否上架" po原创 2020-08-27 11:36:41 · 2577 阅读 · 0 评论 -
vue实现图片放大
安装:cnpm install v-viewer --save 回车执行安装完成,index.vue或main.js 中引入配置文件:import Vue from "vue";import Viewer from "v-viewer";import "viewerjs/dist/viewer.css";index.vue页面代码除引入组件代码:<viewer> <img src="../../assets/loginBg2.jpg" alt="凭证" class="原创 2020-08-17 11:52:05 · 200 阅读 · 0 评论 -
vue使用keep-alive实现从详情页返回时不刷新,从其他页面进入时刷新页面
vue使用keep-alive实现从详情页返回时不刷新,从其他页面进入时刷新页面//App.vue<template> <div id="app"> <keep-alive> <router-view v-if="$route.meta.keepAlive"> </router-view> <TabBar v-if="$route.meta.isTabar"></TabBar原创 2020-08-17 10:08:44 · 1151 阅读 · 0 评论