上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: <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 云霄紫潭 阅读(78) 评论(0) 推荐(0) 编辑
摘要: initWebSocket() { this.destroyWebSocket() const wsUrl = "ws://" + window.location.host + "/webSocket" this.websock = new WebSocket(wsUrl) //连接成功 this. 阅读全文
posted @ 2022-01-12 15:03 云霄紫潭 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 使用watch去监听值即可。 阅读全文
posted @ 2022-01-10 17:38 云霄紫潭 阅读(384) 评论(0) 推荐(0) 编辑
摘要: <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 云霄紫潭 阅读(626) 评论(0) 推荐(0) 编辑
摘要: <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 云霄紫潭 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 请求地址: `url: '/api/usermodule/user/verificationode',` proxy: { '/api': { target: 'http://yd.msword.top', //API服务器的地址 ws: true, //代理websockets changeOri 阅读全文
posted @ 2021-11-05 14:05 云霄紫潭 阅读(795) 评论(0) 推荐(0) 编辑
摘要: <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 云霄紫潭 阅读(142) 评论(0) 推荐(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 云霄紫潭 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: el-select的事件记录 change 事件 可用于单项选择,不可重复再次点击已选择的下拉框内容 <el-select v-model="value" placeholder="请选择" @change='handleChange'> <el-option v-for="item in opti 阅读全文
posted @ 2021-09-23 16:22 云霄紫潭 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 最近碰到个需求,两棵el-tree, 点击勾选第一棵树, 第二棵树对应的节点自动禁用状态。 点击勾选第二棵树, 然后再点击勾选第一棵树,第二棵树对应的勾选状态取消 代码展示 数据结构 "data":[ { "id":2, "privilegePid":0, "privilegeName":"用户中心 阅读全文
posted @ 2021-09-17 11:09 云霄紫潭 阅读(1090) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页