会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
云霄紫潭
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
8
下一页
2022年1月14日
获取动态循环的的标签
摘要: <div> <span v-for="(item,index) in list" :key="index" :ref="'spanRef' + index" :id="'spanRef' + index">{{item.label}}</span> </div> list: [ { id: 1, l
阅读全文
posted @ 2022-01-14 16:13 云霄紫潭
阅读(102)
评论(0)
推荐(0)
2022年1月12日
websocket心跳连接
摘要: initWebSocket() { this.destroyWebSocket() const wsUrl = "ws://" + window.location.host + "/webSocket" this.websock = new WebSocket(wsUrl) //连接成功 this.
阅读全文
posted @ 2022-01-12 15:03 云霄紫潭
阅读(288)
评论(0)
推荐(0)
2022年1月10日
关于vuex中state值更新后,getters没有更新的问题解决
摘要: 使用watch去监听值即可。
阅读全文
posted @ 2022-01-10 17:38 云霄紫潭
阅读(410)
评论(0)
推荐(0)
2022年1月6日
element-ui 表格 计算属性 scope.row
摘要: <template slot-scope="scope"> <el-tag :type="formatterhandleStatus(scope.row)" disable-transitions size="small">新TAG</el-tag> </template> computed:{ f
阅读全文
posted @ 2022-01-06 15:19 云霄紫潭
阅读(707)
评论(0)
推荐(0)
2021年11月30日
前端element-ui 分页
摘要: <el-pagination layout="total, prev, pager, next" :total="pagers.total" :current-page="pagers.page" :page-size="pagers.limit" @current-change="handlePa
阅读全文
posted @ 2021-11-30 15:20 云霄紫潭
阅读(157)
评论(0)
推荐(0)
2021年11月5日
proxy 代理地址
摘要: 请求地址: `url: '/api/usermodule/user/verificationode',` proxy: { '/api': { target: 'http://yd.msword.top', //API服务器的地址 ws: true, //代理websockets changeOri
阅读全文
posted @ 2021-11-05 14:05 云霄紫潭
阅读(1018)
评论(0)
推荐(0)
2021年10月9日
锁屏
摘要: <template> <div v-if="isCover" class="screenBox"> <div class="userInfo"> <el-input v-model.trim="userForm.newPassword" :placeholder="this.$t('lockScre
阅读全文
posted @ 2021-10-09 15:16 云霄紫潭
阅读(166)
评论(0)
推荐(0)
2021年9月29日
VUE2.0项目实现动态修改请求的服务器地址
摘要: 最近需求: 要求可以动态修改请求baseURL。 1、安装插件 npm install --save-dev generate-asset-webpack-plugin 2、修改 vue.config.js module.exports = { configureWebpack:{ const Ge
阅读全文
posted @ 2021-09-29 09:20 云霄紫潭
阅读(1391)
评论(0)
推荐(0)
2021年9月23日
el-select和data
摘要: el-select的事件记录 change 事件 可用于单项选择,不可重复再次点击已选择的下拉框内容 <el-select v-model="value" placeholder="请选择" @change='handleChange'> <el-option v-for="item in opti
阅读全文
posted @ 2021-09-23 16:22 云霄紫潭
阅读(280)
评论(0)
推荐(0)
2021年9月17日
el-tree禁用
摘要: 最近碰到个需求,两棵el-tree, 点击勾选第一棵树, 第二棵树对应的节点自动禁用状态。 点击勾选第二棵树, 然后再点击勾选第一棵树,第二棵树对应的勾选状态取消 代码展示 数据结构 "data":[ { "id":2, "privilegePid":0, "privilegeName":"用户中心
阅读全文
posted @ 2021-09-17 11:09 云霄紫潭
阅读(1272)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
8
下一页
公告