Commit df037e41 by liucan

fix:修复爬虫错误提示文字有部分斜体的问题

parent bcb85867
# 开发环境配置 # 开发环境配置
VITE_APP_BASE_API = '/api' VITE_APP_BASE_API = '/api'
VITE_APP_TITLE = 'Spider Admin Pro' VITE_APP_TITLE = 'Spider Admin Pro'
VITE_WEBSOCKET_API = "http://192.168.0.211:5001/" VITE_WEBSOCKET_API = "http://192.168.0.219:5001/"
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,7 @@ const handleErrorMsgNotify = () => { ...@@ -22,7 +22,7 @@ const handleErrorMsgNotify = () => {
const onErrorMsg = ({ message }: { message: any }) => { const onErrorMsg = ({ message }: { message: any }) => {
ElNotification({ ElNotification({
title: '爬虫错误提示', title: '爬虫错误提示',
message: h('i', { style: 'color: red' }, message), message: () => h('span', { style: 'color: red; font-style: normal' }, message),
type: 'error' type: 'error'
}) })
} }
......
...@@ -5,13 +5,10 @@ import { resolve } from 'path' ...@@ -5,13 +5,10 @@ import { resolve } from 'path'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [vue(), UnoCSS()],
vue(),
UnoCSS()
],
resolve: { resolve: {
alias: { alias: {
'@': resolve(__dirname, 'src'), '@': resolve(__dirname, 'src')
} }
}, },
css: { css: {
...@@ -31,9 +28,9 @@ export default defineConfig({ ...@@ -31,9 +28,9 @@ export default defineConfig({
proxy: { proxy: {
// 代理API请求,使用更精确的路径匹配 // 代理API请求,使用更精确的路径匹配
'/api': { '/api': {
target: 'http://192.168.0.211:5001/', target: 'http://192.168.0.219:5001/',
changeOrigin: true, changeOrigin: true
}, }
} }
} }
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment