mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 22:55:00 +08:00
feat(cmdb-ui):citype show attr && service tree search (#479)
This commit is contained in:
@@ -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
|
@@ -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: {
|
||||
|
Reference in New Issue
Block a user