diff --git a/quasar.config.cjs b/quasar.config.cjs index 69d18c9..3b225e9 100644 --- a/quasar.config.cjs +++ b/quasar.config.cjs @@ -74,7 +74,7 @@ module.exports = configure(function (ctx) { env: { API: ctx.dev ? '/api' - : '/api', + : 'https://101.42.255.156/api', TITLE: '' }, diff --git a/src/boot/msw-server.ts b/src/boot/msw-server.ts index b972664..85aa1ee 100644 --- a/src/boot/msw-server.ts +++ b/src/boot/msw-server.ts @@ -4,7 +4,7 @@ import { handlers } from 'src/mocks' // 您的请求处理程序 export default boot(() => { // dev - if (process.env.PROD) { + if (process.env.DEV) { const worker = setupWorker(...handlers) worker.start() } diff --git a/src/pages/exploiters/generators/IndexPage.vue b/src/pages/exploiters/generators/IndexPage.vue index 6d984e1..9a4f828 100644 --- a/src/pages/exploiters/generators/IndexPage.vue +++ b/src/pages/exploiters/generators/IndexPage.vue @@ -26,14 +26,14 @@ - +
{{ $t('preview') }}
- + @@ -85,11 +85,13 @@ - - - + + + - - - + + + - + + - + + + - + + - + + + - + + + - - + + + - - + + + - - + + + - - + + + +