06 2024 档案
摘要:若依框架将向Vuex中存储数据 1、创建文件 在store -> modules 中创建文件 const state = { accessIdToken: '' } const mutations = { setToken: (state,token) => { state.accessIdToke
阅读全文
摘要:若依框架构造树形结构数据 一、数据库表结构 以分组为例,仅创建分组所需字段,其余业务需要字段后续再添加即可 SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- -- Table structure for ggroup_data -- DROP TAB
阅读全文
摘要:若依框架整合WebSocket 一、前端 1、定义socket对象 data(){ return{ webSocket: null, } } 2、建立连接 //如果webSocket为null进行建立连接 if (!this.webSocket) { this.webSocket = new Web
阅读全文
摘要:若依框架整合Echarts图表 1、放置Echarts图表的div <el-col :span="12"> <div :class="className" :style="{height:height,width:width}" :ref="'chart'"/> </el-col> 注:ref里
阅读全文
摘要:解决跨域问题 配置跨域过滤器(通用) import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springf
阅读全文