feat: 读取服务端提供的版本号
This commit is contained in:
@@ -14,6 +14,9 @@ type AppStore = {
|
|||||||
/**应用版本 */
|
/**应用版本 */
|
||||||
appVersion: string;
|
appVersion: string;
|
||||||
|
|
||||||
|
/**服务版本 */
|
||||||
|
version: string,
|
||||||
|
buildTime: string,
|
||||||
/**应用版权声明 */
|
/**应用版权声明 */
|
||||||
copyright: string;
|
copyright: string;
|
||||||
/**LOGO显示类型 */
|
/**LOGO显示类型 */
|
||||||
@@ -41,6 +44,8 @@ const useAppStore = defineStore('app', {
|
|||||||
appCode: import.meta.env.VITE_APP_CODE,
|
appCode: import.meta.env.VITE_APP_CODE,
|
||||||
appVersion: import.meta.env.VITE_APP_VERSION,
|
appVersion: import.meta.env.VITE_APP_VERSION,
|
||||||
|
|
||||||
|
version: `-`,
|
||||||
|
buildTime: `-`,
|
||||||
copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`,
|
copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`,
|
||||||
logoType: 'icon',
|
logoType: 'icon',
|
||||||
filePathIcon: '',
|
filePathIcon: '',
|
||||||
@@ -70,6 +75,8 @@ const useAppStore = defineStore('app', {
|
|||||||
async fnSysConf() {
|
async fnSysConf() {
|
||||||
const res = await getSysConf();
|
const res = await getSysConf();
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||||
|
this.version = res.data.version;
|
||||||
|
this.buildTime = res.data.buildTime;
|
||||||
this.appName = res.data.title;
|
this.appName = res.data.title;
|
||||||
this.copyright = res.data.copyright;
|
this.copyright = res.data.copyright;
|
||||||
this.logoType = res.data.logoType;
|
this.logoType = res.data.logoType;
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ let tableState: TabeStateType = reactive({
|
|||||||
/**表格状态 */
|
/**表格状态 */
|
||||||
let nfInfo: any = reactive({
|
let nfInfo: any = reactive({
|
||||||
obj: 'OMC',
|
obj: 'OMC',
|
||||||
version: '2.2312.9',
|
version: appStore.version,
|
||||||
status: t('views.index.normal'),
|
status: t('views.index.normal'),
|
||||||
number: '',
|
number: '',
|
||||||
outTimeDate: '',
|
outTimeDate: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user