From d8cbe91e52f94572f66e0c23c6c75737143f2b08 Mon Sep 17 00:00:00 2001 From: children117cl <278950112@qq.com> Date: 星期四, 13 五月 2021 19:09:40 +0800 Subject: [PATCH] 新增表单验证方法,引入在rule的validator调用 --- src/main.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 1cfd752..1499820 100644 --- a/src/main.js +++ b/src/main.js @@ -20,6 +20,8 @@ import Pagination from '@/components/Pagination' // 鑷畾涔夎〃鏍煎伐鍏锋墿灞� import RightToolbar from '@/components/RightToolbar' +// 鎷栨嫿寮圭獥 +import drag from './directive/el-drag-dialog/drag' // 杩囨护鍣ㄧ粺涓�澶勭悊鍔犺浇 Object.keys(filter).forEach(key => { @@ -44,6 +46,8 @@ this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'error' }) } +Vue.directive('el-drag-dialog', drag) + Vue.config.productionTip = false new Vue({ -- Gitblit v1.8.0