From fd98d3d9d49fad8d7244cae8de2264a635fe9f69 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期一, 28 二月 2022 15:55:38 +0800
Subject: [PATCH] 补充默认头像svg、添加加载失败图片显示(demo/list)

---
 src/main.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main.js b/src/main.js
index 1cfd752..c2eae2a 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 => {
@@ -37,13 +39,15 @@
 Vue.prototype.$messageSuc = function(msg) {
   this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'success' })
 }
-Vue.prototype.$messagewarn = function(msg) {
+Vue.prototype.$messageWarn = function(msg) {
   this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'warning' })
 }
 Vue.prototype.$messageError = function(msg) {
   this.$message({ message: msg, dangerouslyUseHTMLString: true, type: 'error' })
 }
 
+Vue.directive('el-drag-dialog', drag)
+
 Vue.config.productionTip = false
 
 new Vue({

--
Gitblit v1.8.0