From 89c67f368934a6368bcfcea31e8f3d231b595846 Mon Sep 17 00:00:00 2001 From: chuzhixin <1204505056@qq.com> Date: Sat, 7 Nov 2020 08:05:30 +0800 Subject: [PATCH] deploy --- package.json | 5 +++-- src/plugins/support.js | 3 +-- src/plugins/vabIcon.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f182030..f9cde35 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "lint:style": "stylelint-config-prettier-check", "inspect": "vue-cli-service inspect", "template": "plop", - "clear": "rimraf node_modules&&npm install --registry=https://registry.npm.taobao.org&&cnpm i image-webpack-loader -D", + "clear": "rimraf node_modules&&npm install --registry=https://registry.npm.taobao.org", + "image-webpack-loader": "cnpm i image-webpack-loader -D", "use:npm": "nrm use npm", "use:taobao": "nrm use taobao", "update": "ncu -u&&cnpm i", @@ -53,13 +54,13 @@ "nprogress": "^0.2.0", "qs": "^6.9.4", "screenfull": "^5.0.2", + "vab-icon": "^0.0.1", "vue": "^2.6.12", "vue-echarts": "^5.0.0-beta.0", "vue-router": "^3.4.9", "vuex": "^3.5.1", "zx-comparison": "^1.0.3", "zx-count": "^0.3.7", - "zx-icon": "^1.1.13", "zx-layouts": "^0.6.21", "zx-magnifie": "^0.4.0", "zx-markdown-editor": "^0.0.2", diff --git a/src/plugins/support.js b/src/plugins/support.js index 3d144e1..3910649 100644 --- a/src/plugins/support.js +++ b/src/plugins/support.js @@ -16,6 +16,5 @@ if (!!window.ActiveXObject || 'ActiveXObject' in window) { dangerouslyUseHTMLString: true, }) } -if (!dependencies['zx-icon'] || !dependencies['zx-layouts']) { +if (!dependencies['vab-icon'] || !dependencies['zx-layouts']) document.body.innerHTML = '' -} diff --git a/src/plugins/vabIcon.js b/src/plugins/vabIcon.js index bc2abdf..634bca7 100644 --- a/src/plugins/vabIcon.js +++ b/src/plugins/vabIcon.js @@ -1,4 +1,4 @@ import Vue from 'vue' -import VabIcon from 'zx-icon' +import VabIcon from 'vab-icon' Vue.component('VabIcon', VabIcon)