loulijun2021
2022-12-30 d1ce83391deac7bbafe7316e91ede5edd6ca30c9
src/components/ThemePicker/index.vue
@@ -1,7 +1,7 @@
<template>
  <el-color-picker
    v-model="theme"
    :predefine="['#409EFF', '#1890ff', '#304156','#212121','#11a983', '#13c2c2', '#6959CD', '#f5222d', ]"
    :predefine="['#409EFF', '#1890ff', '#304156','#212121','#42B983','#11a983', '#13c2c2', '#6959CD', '#f5222d', ]"
    class="theme-picker"
    popper-class="theme-picker-dropdown"
  />
@@ -38,7 +38,7 @@
      console.log(themeCluster, originalCluster)
      const $message = this.$message({
        message: '  Compiling the theme',
        message: '  正在切换主题',
        customClass: 'theme-message',
        type: 'success',
        duration: 0,
@@ -61,7 +61,11 @@
      }
      if (!this.chalk) {
        const url = `https://unpkg.com/element-ui@${version}/lib/theme-chalk/index.css`
        // const url = `https://unpkg.com/element-ui@${version}/lib/theme-chalk/index.css`
        // https://unpkg.com/element-ui@2.15.6/lib/theme-chalk/index.css
        // http://121.196.36.24:8001/VueTheme/theme.css
        const url = 'http://121.196.36.24:8001/VueTheme/theme.css'
        await this.getCSSString(url, 'chalk')
      }