fix
This commit is contained in:
@@ -645,7 +645,7 @@ export default defineComponent({
|
|||||||
this.inputTime = setTimeout(()=>{
|
this.inputTime = setTimeout(()=>{
|
||||||
// let num1 = ((input as HTMLInputElement).value.match(/ /g) || []).length
|
// let num1 = ((input as HTMLInputElement).value.match(/ /g) || []).length
|
||||||
// let num2 = (input as HTMLInputElement).value.split(' ').length
|
// let num2 = (input as HTMLInputElement).value.split(' ').length
|
||||||
if(this.searchPictureName?.split(/\s+/).length > 75){
|
if(this.searchPictureName?.split(/\s+/).length > 250){
|
||||||
(this.$refs.inputShowText as any).innerHTML = this.t('Generate.maximumLength')
|
(this.$refs.inputShowText as any).innerHTML = this.t('Generate.maximumLength')
|
||||||
this.inputShow = true
|
this.inputShow = true
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -663,7 +663,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
ifMaximumLength(){
|
ifMaximumLength(){
|
||||||
this.inputTime = setTimeout(()=>{
|
this.inputTime = setTimeout(()=>{
|
||||||
if(this.captionGeneration?.split(/\s+/).length > 75){
|
if(this.captionGeneration?.split(/\s+/).length > 250){
|
||||||
(this.$refs.inputShowText as any).innerHTML = this.t('PrintboardUpload.maximumLength')
|
(this.$refs.inputShowText as any).innerHTML = this.t('PrintboardUpload.maximumLength')
|
||||||
this.inputShow = true
|
this.inputShow = true
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -517,7 +517,7 @@ export default defineComponent({
|
|||||||
// let num1 = ((input as HTMLInputElement).value.match(/ /g) || []).length
|
// let num1 = ((input as HTMLInputElement).value.match(/ /g) || []).length
|
||||||
// let num2 = (input as HTMLInputElement).value.split(' ').length
|
// let num2 = (input as HTMLInputElement).value.split(' ').length
|
||||||
|
|
||||||
if(this.captionGeneration?.split(/\s+/).length > 75){
|
if(this.captionGeneration?.split(/\s+/).length > 250){
|
||||||
(this.$refs.inputShowText as any).innerHTML = this.t('SketchboardUpload.maximumLength')
|
(this.$refs.inputShowText as any).innerHTML = this.t('SketchboardUpload.maximumLength')
|
||||||
this.inputShow = true
|
this.inputShow = true
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -1037,7 +1037,7 @@ export default defineComponent({
|
|||||||
ifMaximumLength(){
|
ifMaximumLength(){
|
||||||
clearTimeout(this.inputTime)
|
clearTimeout(this.inputTime)
|
||||||
this.inputTime = setTimeout(()=>{
|
this.inputTime = setTimeout(()=>{
|
||||||
if(this.captionGeneration?.split(/\s+/).length > 75){
|
if(this.captionGeneration?.split(/\s+/).length > 250){
|
||||||
(this.$refs.inputShowText as any).innerHTML = this.t('LibraryPage.maximumLength')
|
(this.$refs.inputShowText as any).innerHTML = this.t('LibraryPage.maximumLength')
|
||||||
this.inputShow = true
|
this.inputShow = true
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user