会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
VipSoft
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
60
下一页
2025年9月10日
Vue 将api 获取的 json 数据保存到本地
摘要: <script setup lang="ts"> //引用对象 + 扩展属性 const props = defineProps({ detailData: { type: Object, default: () => ({}), // 默认空对象,避免 undefined }, }); const
阅读全文
posted @ 2025-09-10 07:59 VipSoft
阅读(39)
评论(0)
推荐(0)
2025年9月8日
问卷调查数据库设计
摘要: 设计一个问卷调查数据库时,需要考虑以下几个关键要素:问卷、问题、选项、用户回答等。以下是一个基本的数据库设计方案,使用关系型数据库(如MySQL、PostgreSQL)来实现。 1. 数据库表设计 1.1 问卷表 (surveys) 存储问卷的基本信息。 字段名 数据类型 描述 survey_id
阅读全文
posted @ 2025-09-08 16:40 VipSoft
阅读(251)
评论(0)
推荐(0)
2025年9月4日
Vue 下载文件流,重命名 无法获取 "Content-Disposition"
摘要: //这句要加,否则前端获取不到 "Content-Disposition" response.setHeader("Access-Control-Expose-Headers", "Content-Disposition"); response.setHeader("Content-Disposit
阅读全文
posted @ 2025-09-04 15:05 VipSoft
阅读(53)
评论(0)
推荐(0)
Vue 菜单管理,全选 半选 el-checkbox-group el-checkbox indeterminate
摘要: 注意:indeterminate = false ,表示没被选中,提交的时候没有值 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=devic
阅读全文
posted @ 2025-09-04 13:58 VipSoft
阅读(16)
评论(0)
推荐(0)
2025年9月3日
HTML 下载APP 页面 - 支持多语言
摘要: 支持多语言 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>App
阅读全文
posted @ 2025-09-03 20:56 VipSoft
阅读(60)
评论(0)
推荐(0)
C# 正由另一进程使用,因此该进程无法访问此文件。
摘要: 文件“D:\XXX ”正由另一进程使用,因此该进程无法访问此文件。 File.Copy(sourceFileName, destFileName, true); 这个错误表明在尝试复制文件时,源文件正被另一个进程锁定/占用,导致无法访问。以下是可能的原因和解决方案: 可能原因 文件仍被上传进程占用:
阅读全文
posted @ 2025-09-03 07:20 VipSoft
阅读(518)
评论(0)
推荐(0)
2025年9月1日
Vue 前端版本更新提示,通知用户刷新UI
摘要: 前端更新程序后,通知用户刷新UI 需要手动修改版本号 在 public 目录下 创建 version.json { "version": "1.0.0" } src\App.vue 文件中添加如下代码 <script setup lang="ts"> // 检查版本更新 const checkVer
阅读全文
posted @ 2025-09-01 08:33 VipSoft
阅读(166)
评论(0)
推荐(0)
2025年8月28日
Vue element admin 直接输入path 权限过滤
摘要: 菜单权限 store\modules\permisstion.ts -> generateRoutes() 按钮权限 directive\permission\index.ts 路由权限 plugins\permission.ts permission.ts 修改如下 import type { N
阅读全文
posted @ 2025-08-28 09:50 VipSoft
阅读(30)
评论(0)
推荐(0)
2025年8月27日
Vue el-button 图标靠右显示
摘要: <el-button size="small" link icon="Switch">更多</el-button> 修改后 <el-button type="primary" size="small" link> 更多 <el-icon class="el-icon--right"><DArrowR
阅读全文
posted @ 2025-08-27 15:07 VipSoft
阅读(94)
评论(0)
推荐(0)
2025年8月26日
Vue3 修改原有的多环境切换方式
摘要: Vue2 多环境配置:https://chuna2.787528.xyz/vipsoft/p/16696640.html 一般可以使用 Jenkins 对配置 .env.development、.env.production,不同的环境进行构建 在没有 CI/CD 的情况下。Vue 项目的打包变得繁琐。
阅读全文
posted @ 2025-08-26 16:39 VipSoft
阅读(68)
评论(0)
推荐(0)
Vue 词云图 echart-wordCloud
摘要: Unknown series wordCloud 缺少引用: import "echarts-wordcloud"; https://ecomfe.github.io/echarts-wordcloud/ https://www.npmjs.com/package/echarts-wordcloud
阅读全文
posted @ 2025-08-26 14:12 VipSoft
阅读(102)
评论(0)
推荐(0)
Vue 连接 WebSocket wss://echo.websocket.org/ws
摘要: 由于 wss://echo.websocket.org 不支持STOMP协议,改用原生WebSocket API 这个地址可以用来测试,wss://echo.websocket.org/ws 最终效果 代码如下: <template> <div class="app-container"> <el-
阅读全文
posted @ 2025-08-26 11:37 VipSoft
阅读(181)
评论(0)
推荐(0)
Vue 缓存之坑,变量赋值方式和响应式数据
摘要: const { IsSuperAdmin } = useUserStore().userInfo; /** * 获取后台动态路由数据,解析并注册到全局路由 * * @returns Promise<RouteRecordRaw[]> 解析后的动态路由列表 */ function generateRo
阅读全文
posted @ 2025-08-26 10:00 VipSoft
阅读(226)
评论(0)
推荐(0)
2025年8月25日
Vue element admin 浏览器本地存储 localStorage、useStorage
摘要: 目录localStorage 与 useStorage 的区别localStorage(原生 API)useStorage(VueUse 工具函数)对比示例总结删除 userInfo 的 key 方法1. 使用 useStorage 的推荐方式2. 手动删除 localStorage 的 key3.
阅读全文
posted @ 2025-08-25 14:26 VipSoft
阅读(346)
评论(0)
推荐(1)
2025年8月22日
Vue 根据权限过滤菜单、按钮
摘要: 菜单权限 store\modules\permisstion.ts -> generateRoutes() import { RouteRecordRaw } from "vue-router"; //privateRoutes 前端配置好的JS菜单,权限控制由前端控制,【后端省事】 import
阅读全文
posted @ 2025-08-22 17:21 VipSoft
阅读(53)
评论(0)
推荐(0)
Vue 将 json 数据 放ts文件中,读取
摘要: 去服务器获取数据 getVisitStats() { return request<any, VisitStatsVO>({ url: `${LOG_BASE_URL}/visit-stats`, method: "get", }); }, 将 VisitStats.ts 中的 JSON 数据作为模
阅读全文
posted @ 2025-08-22 11:30 VipSoft
阅读(41)
评论(0)
推荐(0)
Java Spring Boot 修改yml配置&加载顺序规则
摘要: 目录Spring Boot 的配置加载顺序规则1. 格式优先级高于Profile2. 配置加载顺序配置方案参数形式使用配置文件(推荐,最清晰、最易维护)使用Shell脚本或Batch文件(Windows批处理)使用环境变量最佳实践建议 Spring Boot 的配置加载顺序规则 Spring Boo
阅读全文
posted @ 2025-08-22 10:12 VipSoft
阅读(634)
评论(2)
推荐(0)
2025年8月21日
Vue Promise((resolve, reject)
摘要: function generateRoutes() { return new Promise<RouteRecordRaw[]>((resolve, reject) => { MenuAPI.getRoutes() .then((data) => { const dynamicRoutes = pa
阅读全文
posted @ 2025-08-21 16:16 VipSoft
阅读(117)
评论(0)
推荐(0)
Vue-element-admin 添加单独无菜单页面
摘要: 正常页面都是在框架内构建页面,如果不想希望有导航等元素,如何操作,思路,login 不就是这样的页面吗 添加页面 在 src\views 创建 datav/index.vue <template> <div id="app"> <el-link type="primary" :underline="
阅读全文
posted @ 2025-08-21 14:18 VipSoft
阅读(36)
评论(0)
推荐(0)
Vue 菜单 ,不能打开单独的 tab
摘要: 多个菜单点击的时候,中间主体部分,不能增加 tab,原因是因为子菜单没有增加 name , <script setup lang="ts"> defineOptions({ name: "CustodyOrder", //要和菜单中的 name 一致,这样才可以进行菜单缓存 inheritAttrs
阅读全文
posted @ 2025-08-21 10:33 VipSoft
阅读(27)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
60
下一页
公告