Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
rbc-demo
Commits
bcf34ef9
Commit
bcf34ef9
authored
Mar 08, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@rbc/welcome-page): 增加系统版本模块
parent
685915ce
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
2 deletions
+41
-2
app.config.json
develop/@rbc/welcome-page/app.config.json
+6
-1
index.demo.js
develop/@rbc/welcome-page/index.demo.js
+6
-1
package.json
develop/@rbc/welcome-page/package.json
+1
-0
about.vue
develop/@rbc/welcome-page/src/views/about.vue
+28
-0
No files found.
develop/@rbc/welcome-page/app.config.json
View file @
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"
:
{
...
...
develop/@rbc/welcome-page/index.demo.js
View file @
bcf34ef9
...
@@ -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
develop/@rbc/welcome-page/package.json
View file @
bcf34ef9
...
@@ -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"
:
{
...
...
develop/@rbc/welcome-page/src/views/about.vue
0 → 100644
View file @
bcf34ef9
<
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment