zhanmingkan
2022-05-16 c8a1a20ba1ca73bef0cc3bbac652014367d05d75
assets/js/config.js
@@ -10,4 +10,44 @@
var layerPageStyle={
    offsetX: 100,
    offsetY:50
}
}
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'
            });
        },
    },
});