feat(cmdb-ui):citype show attr && service tree search (#479)

This commit is contained in:
dagongren
2024-04-17 17:59:21 +08:00
committed by GitHub
parent d8a7728f1d
commit dc8b1a5de2
40 changed files with 710 additions and 559 deletions

View File

@@ -1,33 +0,0 @@
import { getCompanyInfo } from '@/api/company'
const logo = {
state: {
file_name: '',
small_file_name: ''
},
mutations: {
SET_FILENAME: (state, name) => {
state.file_name = name
},
SET_SMALL_FILENAME: (state, name) => {
state.small_file_name = name
}
},
actions: {
getCompanyInfo({ commit }) {
return new Promise((resolve, reject) => {
getCompanyInfo().then(res => {
if (res.info) {
commit('SET_FILENAME', res.info.logoName)
commit('SET_SMALL_FILENAME', res.info.smallLogoName)
resolve(res.info)
}
}).catch(err => {
console.log('获取失败', err)
reject(err)
})
})
}
}
}
export default logo

View File

@@ -5,7 +5,6 @@ import Vuex from 'vuex'
import app from './global/app'
import user from './global/user'
import routes from './global/routes'
import logo from './global/logo'
import notice from './global/notice'
import getters from './global/getters'
import appConfig from '@/config/app'
@@ -17,7 +16,6 @@ const store = new Vuex.Store({
app,
user,
routes,
logo,
notice
},
state: {