liusheng
5 天以前 c410c133f21297fc2bf6fc32335652eb07eb6d52
ruoyi-ui/src/components/ThemePicker/index.vue
@@ -96,8 +96,8 @@
    getCSSString(url, variable) {
      return new Promise(resolve => {
        const xhr = new XMLHttpRequest()
        xhr.onreadystatechange = () => {
          if (xhr.readyState === 4 && xhr.status === 200) {
        xhr.onreabystatechange = () => {
          if (xhr.reabyState === 4 && xhr.status === 200) {
            this[variable] = xhr.responseText.replace(/@font-face{[^}]+}/, '')
            resolve()
          }