Commit 725c42fc by maxiaohan

登录 + 查重 调整

parent 99e30d3a
......@@ -20,16 +20,16 @@ import "driver.js/dist/driver.min.css";
import "./assets/css/global.css";
import "./assets/css/el-table-style.css";
import VueClipboard from "vue-clipboard2";
import VueBus from 'vue-bus';
import VueBus from "vue-bus";
//引入svg组件
import IconSvg from './utils/IconSvg.vue'
import IconSvg from "./utils/IconSvg.vue";
//全局注册svg-icon
Vue.component('svg-icon', IconSvg)
Vue.component("svg-icon", IconSvg);
// 引入上传组件
import uploader from 'vue-simple-uploader'
Vue.use(uploader)
import uploader from "vue-simple-uploader";
Vue.use(uploader);
Vue.prototype.$driver = new Driver({
className: "scoped-class", // className to wrap driver.js popover
......@@ -56,7 +56,7 @@ Vue.use(VueClipboard);
Vue.use(VueBus);
Vue.directive("nsLoading", {
bind (el, binding) {
bind(el, binding) {
const instance = new LoadingCons({
el: document.createElement("div"),
data: {}
......@@ -75,7 +75,7 @@ Vue.directive("nsLoading", {
* @param {*} el
* @param {*} binding
*/
update (el, binding) {
update(el, binding) {
// 通过对比值的变化判断loading是否显示
if (binding.oldValue !== binding.value) {
el.instance.isShow = binding.value;
......@@ -87,7 +87,7 @@ Vue.directive("nsLoading", {
* 只调用一次,在 指令与元素解绑时调用
* @param {*} el
*/
unbind (el) {
unbind(el) {
const mask = el.instance.$el;
if (mask.parentNode) {
mask.parentNode.removeChild(mask);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment