Commit a699f0b0 by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

feat(@rbc/welcome-page): 增加系统版本模块

See merge request GFP/RBC/rbc-frontend!80
parents 685915ce bcf34ef9
{ {
"name": "welcome-page", "name": "welcome-page",
"title": "大屏配置", "title": "云报销配置",
"author": "admin", "author": "admin",
"keywords": "invoice", "keywords": "invoice",
"company": "久其软件", "company": "久其软件",
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
"title": "登录页配置", "title": "登录页配置",
"icon": "", "icon": "",
"component": "LoginPage" "component": "LoginPage"
},
{
"title": "系统版本",
"icon": "",
"component": "About"
} }
], ],
"data": { "data": {
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import Vue from 'vue' import Vue from 'vue'
import WelcomePage from './src/views/welcome-page' import WelcomePage from './src/views/welcome-page'
import LoginPage from './src/views/login-page' import LoginPage from './src/views/login-page'
import About from './src/views/about'
// 在此处引入vuex和router,将下面导出对象改为{app: App, store: store, router: router} // 在此处引入vuex和router,将下面导出对象改为{app: App, store: store, router: router}
...@@ -15,6 +16,9 @@ export default { ...@@ -15,6 +16,9 @@ export default {
}, },
LoginPage: { LoginPage: {
app: LoginPage, app: LoginPage,
} },
About: {
app: About,
},
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"build-dev": "vue-cli-service build --mode development", "build-dev": "vue-cli-service build --mode development",
"build-dev-watch": "vue-cli-service build --mode development --watch",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
......
<template>
<div>{{version}}</div>
</template>
<script>
export default {
data() {
return {
version: '',
}
},
mounted() {
const appStoreServer = window.nros.createNewInstance({
baseURL: `${window.location.origin}/`,
})
let times = new Date().getTime()
appStoreServer.get(`${window.NROS_PREFIX || '/'}version.json?times=`+times).then((res) => {
console.log(res)
this.version = res && res.data && res.data.rbcVersion
})
}
}
</script>
<style>
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment