Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/wangxy/hyp-front/commit/9127b8ef663c063f8413f60c90f86267f77b70e4?style=split&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
27 additions and
6 deletions
@ -0,0 +1,8 @@
import request from "@/utils/request" ;
export function getNotice ( ) {
return request ( {
url : "/system/notice/getNotice" ,
method : "get" ,
} ) ;
}
@ -2,25 +2,31 @@
< div class = "app-container home" >
< div class = "app-container home" >
< el -row :gutter ="20" >
< el -row :gutter ="20" >
< el -col :sm ="24" :lg ="24" >
< el -col :sm ="24" :lg ="24" >
< blockquote class = "text-warning" style = "font-size: 14px" >
< div v-html ="noticeContent" style="width: 90%;margin: 0 auto;font-size: 16px;text-indent: 30px;" >
欢迎使用黄炎培职业教育奖网上申报系统
< / blockquote >
< / div >
< hr / >
< / e l - c o l >
< / e l - c o l >
< / e l - r o w >
< / e l - r o w >
< el -divider / >
< / div >
< / div >
< / template >
< / template >
< script >
< script >
import { getNotice } from "@/api" ;
export default {
export default {
name : "Index" ,
name : "Index" ,
data ( ) {
data ( ) {
return {
return {
/ / 版 本 号
/ / 版 本 号
version : "3.8.7"
version : "3.8.7" ,
noticeContent : null ,
} ;
} ;
} ,
} ,
mounted ( ) {
getNotice ( ) . then ( ( res ) => {
this . noticeContent = res . data . noticeContent
} )
} ,
methods : {
methods : {
goTarget ( href ) {
goTarget ( href ) {
window . open ( href , "_blank" ) ;
window . open ( href , "_blank" ) ;
@ -30,6 +36,13 @@ export default {
< / script >
< / script >
< style scoped lang = "scss" >
< style scoped lang = "scss" >
: : v - deep . ql - align - center {
font - size : 22 px ;
text - align : center ;
}
: : v - deep . ql - align - justify {
line - height : 30 px ;
}
. home {
. home {
blockquote {
blockquote {
padding : 10 px 20 px ;
padding : 10 px 20 px ;