From 885edef97a642aaceede847c084f70156cbfe9a9 Mon Sep 17 00:00:00 2001 From: ansel0926 <ansel0926@gmail.com> Date: 星期二, 17 五月 2022 10:41:36 +0800 Subject: [PATCH] Merge branch 'master' of ssh://117.78.1.188:29418/DDE-WEB --- assets/js/config.js | 42 +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 41 insertions(+), 1 deletions(-) diff --git a/assets/js/config.js b/assets/js/config.js index db20c9e..349be59 100644 --- a/assets/js/config.js +++ b/assets/js/config.js @@ -10,4 +10,44 @@ var layerPageStyle={ offsetX: 100, offsetY:50 -} \ No newline at end of file +} + + +var vMsg = new Vue({ + methods: { + success(msg) { + this.$message({ message: msg, type: 'success' }); + }, + info(msg) { + this.$message(msg); + }, + warning(msg) { + this.$message({ message: msg, type: 'warning' }); + }, + error(msg) { + this.$message.error(msg); + }, + iconSuccess(title,msg) { + this.$notify({ + title: title, + message: msg, + type: 'success' + }); + }, + iconWarning(title,msg) { + this.$notify({ + title: title, + message: msg, + type: 'warning' + }); + }, + iconWarningWithTime(title,msg,time) { + this.$notify({ + duration:time, + title: title, + message: msg, + type: 'warning' + }); + }, + }, +}); \ No newline at end of file -- Gitblit v1.9.1