From f5ad52a2835a12444f1c10765d85c4695af69132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Thu, 20 Feb 2025 16:45:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0utf-8=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 2e9696a..125a658 100644 --- a/src/main.js +++ b/src/main.js @@ -13,8 +13,9 @@ import 'babel-polyfill'; import api from './api/index.js'; import Common from './components/common/common' Vue.prototype.$validateString = function (str) { - return /^[a-zA-Z\s-]+$/.test(str); + return /^[a-zA-Z\s\u00C0-\u00FF\u0100-\u017F-]+$/.test(str); } + import VXETable from 'vxe-table' import 'vxe-table/lib/style.css'