Commit 725c42fc by maxiaohan

登录 + 查重 调整

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