Browse Source

feat: 接口联调

ashui 1 month ago
parent
commit
455d276998
3 changed files with 4 additions and 1 deletions
  1. 1 0
      .gitignore
  2. BIN
      js.zip
  3. 3 1
      js/index.js

+ 1 - 0
.gitignore

@@ -23,3 +23,4 @@ pnpm-debug.log*
 *.sw?
 
 package-lock.json
+index.zip

BIN
js.zip


+ 3 - 1
js/index.js

@@ -5,6 +5,8 @@ const textStyle = {
   color: '#333',
   fontWeight: 500,
 }
+const hostApi = 'https://dev.jsptax.com'
+const hostApi = 'https://daizhang.jsptax.com'
 
 const axisTick = {
   alignWithLabel: true
@@ -307,7 +309,7 @@ async function getIndexData () {
     acc[key] = value
     return acc
   }, {})
-  const response = await fetch('/api/public/wzfCzList', {
+  const response = await fetch(hostApi + '/api/public/wzfCzList', {
     method: 'POST',
     mode: 'cors',
     headers: {