Skip to content

Commit

Permalink
检查词库中已存在的词条
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBing committed May 18, 2023
1 parent dd4f215 commit 8b469e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/Global.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const IS_IN_DEVELOP = false // 生产
// const IS_IN_DEVELOP = true // 开发
// const IS_IN_DEVELOP = false // 生产
const IS_IN_DEVELOP = true // 开发

const DEFAULT_BASE_URL = 'https://kylebing.cn/portal/'
// const BASE_URL = 'http://localhost:3000/'
Expand Down
1 change: 1 addition & 0 deletions view/index/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ const app = {
},
code(newValue){
this.code = newValue.replaceAll(/[^A-Za-z ]/g, '') // input.code 只允许输入字母
console.log(this.dictMain.wordsOrigin.filter(item => item.code === newValue))
},
word(newValue, oldValue){
if (/[a-z]/i.test(newValue)){
Expand Down

0 comments on commit 8b469e1

Please sign in to comment.