From 6b1c06ff714863c7a791d8a7ac921e7ec5da8a97 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 14 五月 2024 16:00:59 +0800 Subject: [PATCH] 修改jquery引入 --- src/utils/map/dialog.js | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/utils/map/dialog.js b/src/utils/map/dialog.js index 443f87b..f802c99 100644 --- a/src/utils/map/dialog.js +++ b/src/utils/map/dialog.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import { factorName } from '@/constant/factor-name'; import { factorUnit } from '@/constant/factor-unit'; import { windDir } from '@/constant/wind-dir'; @@ -166,7 +167,6 @@ var closeX = document.createElement('i'); titleD.innerHTML = title; closeX.className = 'fa fa-times'; - // eslint-disable-next-line no-undef $(closeX).attr('aria-hidden', 'true'); closeX.onclick = function () { marker.close(); @@ -187,11 +187,8 @@ refreshV.className = 'refresh-btn'; var refresh = document.createElement('i'); refresh.className = 'fa fa-refresh'; - // eslint-disable-next-line no-undef $(refresh).attr('aria-hidden', 'true'); - // eslint-disable-next-line no-undef $(refresh).css('color', '#ffffffc0'); - // eslint-disable-next-line no-undef $(refresh).css('cursor', 'pointer'); refresh.onclick = function () { // $(this).addClass('fa-spin') -- Gitblit v1.9.3