- 博客(13)
- 收藏
- 关注
原创 el-select el-option 动态数据 @change以后v-mode没有变化
在@change事件里面添加一个 this.$forceUpdate() 强制刷新。
2023-04-03 13:29:56
879
原创 vue mavon-editor 导航跳转(锚点跳转)
1安装npm install mavon-editor --save网址:官网html<mavon-editor v-if="zuJianWD" :editable="false" :value="zuJianWD" :subfield="false" :defaultOpen="'preview'" :toolbarsFlag="false" :scrollStyle="true"
2022-04-01 23:05:18
1044
原创 vue 路由(router)拦截是否登录过
在router.js下写入// 路由守卫router.beforeEach((to, from, next) => { // to要跳转到的路径 // from从哪个路径来 // next往下执行的回调 // 在localStorage中获取token let token = localStorage.getItem('username') // 判断该页面是否需要登录 if (to.meta.auth) { // 如果token存在直接跳转 if
2022-03-09 10:23:35
1243
原创 vue 点击背景色变色,
<template> <md-page class="zujianlb"> <div class="header"> <div class="wrap"> <span style="float: left">分类</span> <div class="total1" v-for="(item, index) in fenLei" :key="index" style="fl.
2022-02-15 09:15:35
484
原创 提交成功以后退出公众号
document.addEventListener('WeixinJSBridgeReady', function(){ WeixinJSBridge.call('closeWindow'); }, false);WeixinJSBridge.call('closeWindow');可兼容ios
2022-01-18 11:07:53
171
原创 hbuilderx + vue 真机测试无法请求后台接口
1,在manifest.json,应用入口页面写上线上地址2,把dist传到线上,3,从新真机测试,完美解决
2022-01-18 11:06:23
2511
原创 vue 短信验证码
<template> <div class="reg"> <el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="80px" class="demo-ruleForm" > <h3 class="login-title">欢迎注册</h3>.
2021-12-27 22:04:48
582
原创 vue 跨域问题 两个域名以上
在dev下面的proxyTable进行编辑'/api': { target: 'https://dushu.baidu.com/', //后端接口地址 changeOrigin: true, //是否允许跨越 pathRewrite: { '^/api': '', //重写, } }, '/mzyl': {//第二个域名一定不能用api1或者api2一类的,因为回被解析为api
2021-12-19 17:29:29
585
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人