|
@@ -366,18 +366,21 @@
|
|
|
return
|
|
|
}else{
|
|
|
for(var i in appendedArr){
|
|
|
- if(appendedArr[i] === appended){
|
|
|
- weui.toast('附加词重复了', {
|
|
|
- duration: 2000,
|
|
|
- className: 'text-overflow100',
|
|
|
- callback: function(){}
|
|
|
- });
|
|
|
- return
|
|
|
+ if(appended !== appendeds){
|
|
|
+ if(appendedArr[i] === appended){
|
|
|
+ weui.toast('附加词重复了', {
|
|
|
+ duration: 2000,
|
|
|
+ className: 'text-overflow100',
|
|
|
+ callback: function(){}
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if(appendedArr[i] === appendeds){
|
|
|
appendedArr[i] = appended;
|
|
|
}
|
|
|
}
|
|
|
+ console.log("111")
|
|
|
if(sessionStorage.keyWord!==""&&sessionStorage.keyWord!==undefined){
|
|
|
for(var i in keyWordsArr){
|
|
|
if(keyWordsArr[i].keyWord === tokens){
|