From 4d49021f4196bc7450cea3d89b109c8e70ed5c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9D=E6=A2=A6=E5=9B=AD?= Date: Fri, 8 Sep 2023 18:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/api.config.js | 8 +- nuxt.config.js | 6 +- package.json | 3 +- pages/admin/tag/post/_tag_id.vue | 3 +- pages/admin/topic/post/_topic_id.vue | 3 +- pages/portfolio/post/_portfolio_id.vue | 159 ++++++++++++++++--------- pages/user/settings/avatar.vue | 3 +- plugins/vue-cropper.js | 6 +- 8 files changed, 115 insertions(+), 76 deletions(-) diff --git a/config/api.config.js b/config/api.config.js index 85c6e65..2964e32 100644 --- a/config/api.config.js +++ b/config/api.config.js @@ -3,7 +3,7 @@ import {NODE_ENV} from '../environment' const apisMap = { development: { FE: 'http://localhost:3000', - BASE: 'http://localhost:8099/forest', + BASE: 'https://rymcu.com', CDN: '', PROXY: '/proxy', SOCKET: 'http://localhost:3000/ws', @@ -12,11 +12,11 @@ const apisMap = { VDITOR_CSS: 'https://static.rymcu.com/vditor@3.8.14/dist/css/content-theme' }, test: { - FE: 'https://test.rymcu.com', - BASE: 'https://test.rymcu.com', + FE: 'https://rymcu.com', + BASE: 'https://rymcu.com', CDN: 'https://static.rymcu.com', PROXY: 'https://static.rymcu.com/proxy', - SOCKET: 'https://test.rymcu.com/wss', + SOCKET: 'https://rymcu.com/wss', GRAVATAR: 'https://static.rymcu.com/avatar', VDITOR: 'https://static.rymcu.com/vditor@3.8.14/', VDITOR_CSS: 'https://static.rymcu.com/vditor@3.8.14/dist/css/content-theme' diff --git a/nuxt.config.js b/nuxt.config.js index 7043019..807b573 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -58,8 +58,8 @@ export default { {src: '~/plugins/axios'}, {src: '~/plugins/element-ui'}, {src: '~/plugins/vditor', ssr: false}, - {src: '~/plugins/vue-sse'} - // {src: '~/plugins/vue-cropper', ssr: false} + {src: '~/plugins/vue-sse'}, + {src: '~/plugins/vue-cropper', ssr: false} ], /* ** Nuxt.js dev-modules @@ -116,7 +116,7 @@ export default { proxy: [ //proxy配置 ['/api', { target: apiConfig.BASE, //api请求路径 - pathRewrite: {'^/api': isDevMode ? '/api/v1' : '/api'} //重定向请求路径,防止路由、api路径的冲突 + pathRewrite: {'^/api': isDevMode ? '/api' : '/api'} //重定向请求路径,防止路由、api路径的冲突 }], ['/ws', { target: apiConfig.BASE //api请求路径 diff --git a/package.json b/package.json index 160353b..895fc0a 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "prepare": "husky install" }, "dependencies": { + "@babel/types": "^7.21.2", "@chenfengyuan/vue-qrcode": "^1.0.2", "@nuxtjs/auth-next": "^5.0.0-1667386184.dfbbb54", "@nuxtjs/axios": "^5.13.1", @@ -27,7 +28,7 @@ "save-svg-as-png": "^1.4.17", "simple-icons": "^6.23.0", "vditor": "^3.8.18", - "vue-cropperjs": "^4.2.0", + "vue-cropper": "^0.6.2", "vue-sse": "^2.5.2", "vuejs-avataaars": "^4.0.1" }, diff --git a/pages/admin/tag/post/_tag_id.vue b/pages/admin/tag/post/_tag_id.vue index e0df7d7..d6ea2c8 100644 --- a/pages/admin/tag/post/_tag_id.vue +++ b/pages/admin/tag/post/_tag_id.vue @@ -120,8 +120,7 @@