This commit is contained in:
tianshixing 2025-03-13 10:15:54 +08:00
parent a5d098ce71
commit 51e85f47cc
9 changed files with 40 additions and 8 deletions

2
.env
View File

@ -16,7 +16,7 @@ VITE_APP_CONTEXT_PATH = '/'
VITE_APP_API_PREFIX = '/api'
# 接口地址
VITE_APP_API_URL = 'http://localhost:10010'
VITE_APP_API_URL = 'http://82.157.20.36:10010'
# OSS通用图片访问前缀
VITE_APP_COMMON_IMAGE_PREFIX = '/resource/oss/image?f='

View File

@ -6,7 +6,7 @@
<link rel="icon" data-href="/favicon.ico">
<link rel="stylesheet" data-href="/icons/system/iconfont.css">
<link rel="stylesheet" data-href="/icons/cms/iconfont.css">
<title>伊娃CMS-轻量级CMS系统</title>
<title>南开区民政局</title>
</head>
<body>
<div id="app"></div>

32
kit.json Normal file
View File

@ -0,0 +1,32 @@
{
"name":"我的项目-eva-cms-admin-front",
"space":"Eva",
"service":{
"eva-cms-admin-front":{
"version":"1.0.0",
"variables":[
{
"name":"loginTitle",
"inputType":"input",
"value":"南开区民政局"
},
{
"name":"loginDescription",
"inputType":"input",
"value":""
},
{
"name":"menuTitle",
"inputType":"input",
"value":"南开区民政局"
},
{
"name":"_plugins",
"inputType":"_plugins",
"value":[]
}
]
}
},
"plugins":{}
}

BIN
public/favicon copy.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -2,7 +2,7 @@
<div class="menu" :class="{collapse: menuData.collapse}">
<div class="logo">
<div><img src="../../assets/logo.png" alt="logo"></div>
<h1 :class="{hidden: menuData.collapse}">伊娃CMS</h1>
<h1 :class="{hidden: menuData.collapse}">Nankai</h1>
</div>
<Scrollbar>
<el-menu

View File

@ -40,7 +40,7 @@ export default {
if (fileKey.startsWith('http://') || fileKey.startsWith('https://')) {
return fileKey
}
return import.meta.env.VITE_APP_COMMON_IMAGE_PREFIX + fileKey
return 'https://nankaicms.adl66.com/Api/Client/resource/oss/image?f=' + fileKey
}
// 获取附件下载路径
app.config.globalProperties.$getAttachURL = (fileKey, filename) => {

View File

@ -9,8 +9,8 @@
<div class="introduce-layer">
<img src="/src/assets/logo.png" alt="">
<div>
<h2>伊娃CMS-轻量级CMS系统</h2>
<h3>金镐开源组织研发免费开源轻量高规范</h3>
<h2>南开区民政局</h2>
<h3></h3>
</div>
</div>
</div>

View File

@ -6,7 +6,7 @@ import eslint from 'vite-plugin-eslint'
// https://vitejs.dev/config/
export default ({mode}) => {
const apiPrefix = loadEnv(mode, process.cwd()).VITE_APP_API_PREFIX
const apiUrl = loadEnv(mode, process.cwd()).VITE_APP_API_URL
const apiUrl = 'http://82.157.20.36:10010';//loadEnv(mode, process.cwd()).VITE_APP_API_URL
return defineConfig({
plugins: [
vue(),