diff --git a/.env.development b/.env.development
index 5d2f580..3d6e829 100644
--- a/.env.development
+++ b/.env.development
@@ -1,6 +1,6 @@
# 应用模块接口
-VITE_SERVER_URL=https://server.gxwebsoft.com/api
-API_BASE=https://cms-api.websoft.top/api
+VITE_SERVER_URL=https://server.gxbsnx.com/api
+API_BASE=https://server.gxbsnx.com/api
#API_BASE=http://127.0.0.1:9001/api
#VITE_SERVER_URL=http://127.0.0.1:8000/api
diff --git a/.env.production b/.env.production
index 3ff109c..2da41ff 100644
--- a/.env.production
+++ b/.env.production
@@ -1,4 +1,4 @@
# 基础模块
-VITE_SERVER_URL=https://server.gxwebsoft.com/api
+VITE_SERVER_URL=https://server.gxbsnx.com/api
# 应用模块
-API_BASE=https://cms-api.websoft.top/api
+API_BASE=https://server.gxbsnx.com/api
diff --git a/assets/css/main.css b/assets/css/main.css
index f09300c..09552de 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -12,14 +12,14 @@
.head-bg {
width: 100% !important;
- background: url('https://gxbsnx.com/Temp/images/new/imgimg4.png');
+ background: url('http://img.gxbsnx.com/Temp/images/new/imgimg4.png');
height: 39px;
display: flex;
justify-items: center;
clear: both;
}
.menu-bg{
- background: url('https://www.gxbsnx.com/Temp/images/background/back_green.png') repeat-x top center;
+ background: url('http://img.gxbsnx.com/Temp/images/background/back_green.png') repeat-x top center;
background-size: 100% 100%;
clear: both;
}
diff --git a/components/AppFooter/Copyright/Copyright.vue b/components/AppFooter/Copyright/Copyright.vue
index 9b7c6e0..9d378d5 100644
--- a/components/AppFooter/Copyright/Copyright.vue
+++ b/components/AppFooter/Copyright/Copyright.vue
@@ -17,7 +17,7 @@ const config = useConfigInfo();
备案号:{{ config?.icpNo }}
@@ -37,7 +37,7 @@ const config = useConfigInfo();
备案号:{{ config?.icpNo }}
diff --git a/components/AppHeader/AppHeader.vue b/components/AppHeader/AppHeader.vue
index a68dae6..64e2da9 100644
--- a/components/AppHeader/AppHeader.vue
+++ b/components/AppHeader/AppHeader.vue
@@ -9,7 +9,7 @@
diff --git a/components/AppHeader/TopBar/TopBar.vue b/components/AppHeader/TopBar/TopBar.vue
index c2ba946..54011d6 100644
--- a/components/AppHeader/TopBar/TopBar.vue
+++ b/components/AppHeader/TopBar/TopBar.vue
@@ -10,6 +10,15 @@ const drawer = ref
(false);
const onSearch = () => {
window.location.href = `/${i18n.locale.value}/search/${keyword.value}`;
}
+
+const route = useRoute();
+watch(
+ () => route.params.keywords,
+ (text) => {
+ keyword.value = String(text);
+ },
+ { immediate: true }
+);
@@ -19,10 +28,10 @@ const onSearch = () => {
校长信箱
- 旧版
+
diff --git a/components/Index/HotNews.vue b/components/Index/HotNews.vue
index 3270ac5..e97a532 100644
--- a/components/Index/HotNews.vue
+++ b/components/Index/HotNews.vue
@@ -89,10 +89,7 @@ const reload = async () => {
limit: 8,
categoryId: props.categoryId
}).then(res => {
- list.value = res?.list.map(d => {
- d.image = getImage(d.image)
- return d;
- }) || [];
+ list.value = res?.list || [];
})
}
reload();
diff --git a/config/index.ts b/config/index.ts
index b97d6c9..4f684cc 100644
--- a/config/index.ts
+++ b/config/index.ts
@@ -5,12 +5,12 @@ export const APP_SECRET = 'ffd6eee985af45e4a75098422d1decbb';
export const domain = 'https://websoft.top';
// 主节点
-export const SERVER_API_URL = import.meta.env.VITE_SERVER_URL || 'https://server.gxwebsoft.com/api';
+export const SERVER_API_URL = import.meta.env.VITE_SERVER_URL || 'https://server.gxbsnx.com/api';
// 模块节点
export const MODULES_API_URL = import.meta.env.VITE_API_URL || 'https://cms-api.websoft.top/api';
export const COMMON_API_URL = import.meta.env.VITE_THINK_URL || 'https://common-api.websoft.top/api';
// 文件服务器地址
-export const FILE_SERVER = 'https://gxbsnx.com';
+export const FILE_SERVER = 'https://img.gxbsnx.com';
/**
* 以下配置一般不需要修改
diff --git a/nuxt.config.ts b/nuxt.config.ts
index a8d8f90..40edcdd 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -8,7 +8,7 @@
// 填租户ID
const appId = 10490;
// 接口地址
-let apiBaseUrl = 'https://cms-api.websoft.top/api'
+let apiBaseUrl = 'https://server.gxbsnx.com/api'
// 应用名称
const appName = '广西百色农业学校';
@@ -86,9 +86,9 @@ export default defineNuxtConfig({
apiBaseUrl,
tenantId: appId,
siteName: appName,
- domain: 'websoft.top',
+ domain: 'gxbsnx.com',
// 核心接口
- apiServer: 'https://server.gxwebsoft.com/api',
+ apiServer: 'https://server.gxbsnx.com/api',
appSecret: '',
appName: '你的网站名称'
}
diff --git a/pages/article/[id].vue b/pages/article/[id].vue
index c4a5d97..466e787 100644
--- a/pages/article/[id].vue
+++ b/pages/article/[id].vue
@@ -97,10 +97,7 @@ const reload = async () => {
pageCmsArticle(where).then(response => {
if(response){
total.value = response?.count;
- list.value = response?.list.map(d => {
- d.image = getImage(d.image);
- return d;
- });
+ list.value = response?.list || [];
}
})
})
diff --git a/pages/detail/[id].vue b/pages/detail/[id].vue
index 2f268f3..b75f91a 100644
--- a/pages/detail/[id].vue
+++ b/pages/detail/[id].vue
@@ -215,9 +215,9 @@ const reload = async () => {
})
}
// 拼接图片路径
- if(data.content){
- form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
- }
+ // if(data.content){
+ // form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
+ // }
if(form.permission === 1){
console.log('登录可见')
diff --git a/pages/developer/[id].vue b/pages/developer/[id].vue
index dce6302..9096164 100644
--- a/pages/developer/[id].vue
+++ b/pages/developer/[id].vue
@@ -58,7 +58,7 @@
diff --git a/pages/passport/login.vue b/pages/passport/login.vue
index 565226d..067fa03 100644
--- a/pages/passport/login.vue
+++ b/pages/passport/login.vue
@@ -238,7 +238,7 @@ useHead({
* 执行登录
*/
const onSubmit = async () => {
- const {data: response} = await useServerRequest>('/login',{baseURL: 'https://server.gxwebsoft.com/api',method: "post",body: form})
+ const {data: response} = await useServerRequest>('/login',{baseURL: 'https://server.gxbsnx.com/api',method: "post",body: form})
// 登录成功
if(response.value?.code == 0){
ElMessage.success(response.value?.message)
diff --git a/pages/search/[keywords].vue b/pages/search/[keywords].vue
index 750a448..d290925 100644
--- a/pages/search/[keywords].vue
+++ b/pages/search/[keywords].vue
@@ -6,17 +6,17 @@
{{ '站内搜索' }}
-
-
-
-
+
+
+
+
@@ -51,6 +51,7 @@ import dayjs from "dayjs";
import {getViews} from "~/utils/common";
import {pageCmsArticle} from "~/api/cms/cmsArticle";
import {FILE_SERVER} from "~/config";
+import {pageCmsArticleContent} from "~/api/cms/cmsArticleContent";
const route = useRoute();
const router = useRouter();
@@ -69,17 +70,17 @@ const where = reactive({
keywords: undefined,
page: 1,
limit: 12,
- status: 0,
- parentId: undefined,
- categoryId: undefined,
- lang: i18n.locale.value
+ // status: 0,
+ // parentId: undefined,
+ // categoryId: undefined,
+ // lang: i18n.locale.value
});
// 加载页面数据
const reload = async () => {
list.value = [];
- pageCmsArticle(where).then(response => {
+ pageCmsArticleContent(where).then(response => {
list.value = response?.list || [];
total.value = response?.count || 0;
})
diff --git a/pages/user/components/Auth.vue b/pages/user/components/Auth.vue
index ca17132..f773125 100644
--- a/pages/user/components/Auth.vue
+++ b/pages/user/components/Auth.vue
@@ -58,7 +58,7 @@