Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复DictTag组件中未判断options可能为空/非数组的问题 #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Qiuner
Copy link

@Qiuner Qiuner commented Sep 20, 2024

报错截图与错误描述:
输入图片说明输入图片说明

用户信息表

CREATE TABLE manage_user (
id BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT '用户ID',
salt VARCHAR(255) COMMENT '加密盐',
user_name VARCHAR(36) NOT NULL UNIQUE COMMENT '用户名,12个汉字以内',
user_password CHAR(32) NOT NULL COMMENT '密码,MD5加密',
phone VARCHAR(11) NOT NULL COMMENT '手机号',
user_avatar VARCHAR(255) COMMENT '头像',
user_backdrop VARCHAR(255) COMMENT '用户背景图片',
user_certification TINYINT(1) DEFAULT 0 COMMENT '认证情况,0未认证,1已认证',
user_status TINYINT(1) DEFAULT 0 COMMENT '账户状态,0正常,1锁定',
created_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
updated_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'
) COMMENT '用户信息表';
输入图片说明

输入图片说明
输入图片说明
输入图片说明
报错信息输入图片说明
输入图片说明

修改办法: DictTag组件先判断是不是一个数组即可
下图为修改成功后

经个人数十次不完全测试Vue2版本没有这个问题

没有看到gitee上由vue3版本的ruoyi官方库,因此已merge request到GitHub

@Qiuner Qiuner changed the title 修改DictTag组件没有判断options可能为空的问题 修复DictTag组件中未判断options可能为空/非数组的问题 Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant