feat: 添加页脚组件并更新多个功能
- 新增Footer组件显示版权信息和备案号 - 替换favicon为blogicon.jpg - 更新API基础URL为生产环境 - 重命名nonsenseService方法为createNonsense - 在文章编辑页添加返回列表按钮 - 优化分类和标签创建后的页面跳转逻辑 - 移除home.vue中不必要的height样式
This commit is contained in:
@@ -4,7 +4,7 @@ import { ElMessage } from 'element-plus'
|
||||
|
||||
// 创建axios实例
|
||||
const api = axios.create({
|
||||
baseURL:'http://localhost:8080/api', // API基础URL
|
||||
baseURL: 'http://qf1121.top/api', // API基础URL
|
||||
timeout: 10000, // 请求超时时间
|
||||
withCredentials: true // 允许跨域请求携带凭证(如cookies)
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// 留言相关API服务
|
||||
// 疯言疯语相关API服务
|
||||
import apiService from './apiService'
|
||||
|
||||
class NonsenseService {
|
||||
@@ -22,7 +22,7 @@ class NonsenseService {
|
||||
* @param {import('../types').Nonsense} nonsense - 疯言疯语内容对象
|
||||
* @returns {Promise<import('../types').ApiResponse<import('../types').Nonsense>>}
|
||||
*/
|
||||
saveNonsense(nonsense){
|
||||
createNonsense(nonsense){
|
||||
return apiService.post('/nonsense', nonsense)
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user