Browse Source

更新使用方法

Caner 3 years ago
parent
commit
f27e0f1eec
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/pages/index/views/home/index.vue

+ 2 - 3
src/pages/index/views/home/index.vue

@@ -1,9 +1,8 @@
 <script setup lang="ts">
-import { post } from '@/utils/request'
+import { POST } from '@/utils/request'
 
 function change() {
-  console.log(123)
-  post('/sys/login', { userAccount: 1, userPwd: 'c4ca4238a0b923820dcc509a6f75849b' })
+  POST('/sys/login', { userAccount: 1, userPwd: 'c4ca4238a0b923820dcc509a6f75849b' })
 }
 </script>
 <template>