liusheng
5 天以前 2212759d051a0f60b4f0ada73d678cf150e29c84
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()
          }