|
@@ -5103,8 +5103,8 @@ export default {
|
|
|
// return;
|
|
|
// }
|
|
|
// 判断 this.line 链接是不是 html 文件
|
|
|
- if (!/\.html(\?|#|$)/i.test(this.line)) {
|
|
|
- this.$message.error("请输入以.html结尾的链接");
|
|
|
+ if (!/\.html(\?|#|$)/i.test(this.line) && !/\.htm(\?|#|$)/i.test(this.line)) {
|
|
|
+ this.$message.error("请输入以.html或.htm结尾的链接");
|
|
|
return;
|
|
|
}
|
|
|
|