Skip to content

Commit b2b6328

Browse files
committed
更新[BoxJs]: 添加订阅时增加正则判断是否 url,防止误输入非 url 内容
1 parent e4c5dee commit b2b6328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chavy.box.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ function printHtml(data, curapp = null, curview = 'app') {
867867
<v-btn text small @click="onAddAppSubPaste">粘粘</v-btn>
868868
<v-spacer></v-spacer>
869869
<v-btn text small color="grey darken-1" text @click="ui.addAppSubDialog.show = false">取消</v-btn>
870-
<v-btn text small color="success darken-1" text @click="onAddAppSub">添加</v-btn>
870+
<v-btn text small color="success darken-1" text :disabled="!/^https?:\\/\\/.*?/.test(ui.addAppSubDialog.url)" @click="onAddAppSub">添加</v-btn>
871871
</v-card-actions>
872872
</v-card>
873873
</v-dialog>

0 commit comments

Comments
 (0)