提交 529bce0f authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 f2cd8f6e
import fs from 'fs' import fs from 'node:fs'
import path from 'path' import path from 'node:path'
import chalk from 'chalk' import chalk from 'chalk'
import OSS from 'ali-oss' import OSS from 'ali-oss'
......
...@@ -17,7 +17,7 @@ const currentList = $computed(() => { ...@@ -17,7 +17,7 @@ const currentList = $computed(() => {
}) })
}) })
function fetchList() { function fetchList() {
getMessages({ source: 'RESOURCE_MARKETING', is_read: 0, limit: 100 }).then(res => { getMessages({ source: 'RESOURCE_MARKETING', is_read: 0, is_platform: 0, limit: 100 }).then(res => {
list = res.data.data list = res.data.data
}) })
} }
......
import fs from 'fs' import fs from 'node:fs'
import path from 'path' import path from 'node:path'
import { fileURLToPath, URL } from 'url' import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
...@@ -26,12 +26,12 @@ export default defineConfig(({ mode }) => ({ ...@@ -26,12 +26,12 @@ export default defineConfig(({ mode }) => ({
cert: fs.readFileSync(path.join(__dirname, './https/dev.ezijing.com.pem')) cert: fs.readFileSync(path.join(__dirname, './https/dev.ezijing.com.pem'))
}, },
proxy: { proxy: {
'/api/lab': { // '/api/lab': {
target: 'https://resource-api-test.ezijing.com', // target: 'https://resource-api-test.ezijing.com',
changeOrigin: true, // changeOrigin: true,
rewrite: path => path.replace(/^\/api\/lab/, '') // rewrite: path => path.replace(/^\/api\/lab/, '')
}, // },
'/api': 'https://resource-center.ezijing.com' '/api': 'https://saas-lab.ezijing.com'
} }
}, },
resolve: { resolve: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论