Skip to content

Commit

Permalink
Merge pull request #201 from little3201/develop
Browse files Browse the repository at this point in the history
启动prod环境mock
  • Loading branch information
little3201 authored Aug 13, 2024
2 parents 69071cb + fb15103 commit 10d3fe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/boot/msw-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { handlers } from 'src/mocks/handlers' // 您的请求处理程序

export default boot(() => {
// dev
if (process.env.DEV) {
const worker = setupWorker(...handlers)
worker.start()
}
// if (process.env.DEV) {
const worker = setupWorker(...handlers)
worker.start()
// }
})
2 changes: 1 addition & 1 deletion src/pages/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<q-form @submit="onSubmit" class="q-mt-md full-width q-px-xl">
<q-input :disable="loading" dense no-error-icon v-model.trim="form.username"
:placeholder="$t('username')"
:rules="[(val) => (val && val.length > 5 && val.length < 12) || $t('username')]">>
:rules="[(val) => (val && val.length > 5 && val.length < 12) || $t('username')]">
</q-input>
<q-input :disable="loading" dense no-error-icon :type="showPwd ? 'password' : 'text'"
v-model.trim="form.password" :placeholder="$t('password')"
Expand Down

0 comments on commit 10d3fe7

Please sign in to comment.