How to change the log icon and text according to the RuoYi framework?

1. If you modify the main interface icon

insert image description here

图片路径: /src/assets/logo/logo.png

Simply replace the image in png format that you want to replace, and the image size is recommended to be 60*60

2. Ruoyi modify the main interface text

insert image description here

文件路径:/src/layout/components/Sidebar/Logo.vue
// js部分
<script>
import logoImg from '@/assets/logo/logo.png'
import variables from '@/assets/styles/variables.scss'

export default {
    
    
  name: 'SidebarLogo',
  props: {
    
    
    collapse: {
    
    
      type: Boolean,
      required: true
    }
  },
  computed: {
    
    
    variables() {
    
    
      return variables;
    },
    sideTheme() {
    
    
      return this.$store.state.settings.sideTheme
    }
  },
  data() {
    
    
    return {
    
    
      title: '若依管理系统',  <-- 将其改为想要的标题即可
      logo: logoImg
    }
  }
}
</script>

3. If you modify the icon at the top of the page

insert image description here

图标路径:/public/favicon.ico

It can be replaced directly, the recommended size is 64*64

4. If you modify the text at the top of the page

insert image description here

文件目录:
/.env.development
/.env.production
/.env.staging
推荐全部修改,因为根据环境不同
//.env.development

# 页面标题
VUE_APP_TITLE = 若依管理系统           <-- 修改此处

# 开发环境配置
ENV = 'development'

# 腾逸商城管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'

# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

5. If you modify the text on the login page

insert image description here

文件路径:/src/views/login.vue
// login.vue

<h3 class="title">若依后台管理系统</h3>  //找到此标签修改即可

6. Free Image Conversion Sites

https://www.aconvert.com/cn/image/

Guess you like

Origin blog.csdn.net/c15112120076/article/details/125502624