2 Commits

  1. 4
      activitylink/src/views/zhongchou/gift/importFixedList/index.vue
  2. 4
      activitylink/src/views/zhongchou/gift/importuser/index.vue

4
activitylink/src/views/zhongchou/gift/importFixedList/index.vue

@ -265,8 +265,8 @@ const trimAddJwcode = (value) => {
//
const trimUsername = (value) => {
//
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z]/g, '');
// 0-9
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z0-9]/g, '');
// 30
addObj.value.username = filteredValue.slice(0, 30);
}

4
activitylink/src/views/zhongchou/gift/importuser/index.vue

@ -247,8 +247,8 @@ const trimAddJwcode = (value) => {
//
const trimUsername = (value) => {
//
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z]/g, '');
// 0-9
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z0-9]/g, '');
// 30
addObj.value.username = filteredValue.slice(0, 30);
}

Loading…
Cancel
Save