Browse Source

feat: 更新依赖

pull/1/head
jiannibang 3 years ago
parent
commit
04f8556df3
  1. 22173
      package-lock.json
  2. 8
      package.json
  3. 9
      src/js/helpers/data-helper.js
  4. 12715
      yarn.lock

22173
package-lock.json

File diff suppressed because it is too large

8
package.json

@ -4,21 +4,17 @@
"private": true, "private": true,
"homepage": "./", "homepage": "./",
"dependencies": { "dependencies": {
"@apollo/client": "^3.3.11",
"@testing-library/jest-dom": "^5.11.4", "@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0", "@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10", "@testing-library/user-event": "^12.1.10",
"antd-mobile": "^2.3.4", "antd-mobile": "^2.3.4",
"apollo-cache-inmemory": "^1.6.6",
"apollo-client": "^2.6.10",
"apollo-link-http": "^1.5.17",
"axios": "^0.21.1", "axios": "^0.21.1",
"graphql": "^15.5.0", "graphql": "^15.5.0",
"node-sass": "^5.0.0",
"node-sass": "^9.0.0",
"qrcodejs2": "^0.0.2", "qrcodejs2": "^0.0.2",
"react": "^17.0.1", "react": "^17.0.1",
"react-dom": "^17.0.1", "react-dom": "^17.0.1",
"react-infinite-scroller": "^1.2.4",
"react-infinite-scroller": "^1.2.6",
"react-lazy-load-image-component": "^1.5.1", "react-lazy-load-image-component": "^1.5.1",
"react-modal": "^3.12.1", "react-modal": "^3.12.1",
"react-qr-reader": "^3.0.0-beta-1", "react-qr-reader": "^3.0.0-beta-1",

9
src/js/helpers/data-helper.js

@ -1,8 +1,13 @@
import axios from "axios"; import axios from "axios";
import icons from "./image-helper"; import icons from "./image-helper";
let mallInfos = new Map(); let mallInfos = new Map();
let baseUrl = "https://iot-dev.123.1000my.com";
const href = window.location.href;
let baseUrl =
href.includes("localhost") || href.includes("-dev")
? "https://iot-dev.123.1000my.com"
: href.includes("-test")
? "https://project-iot.test.1000my.com"
: "https://iot.1000my.com";
const getMallInfo = async (code) => { const getMallInfo = async (code) => {
const { groundFloorOrder, scale, offsetToNorth } = { const { groundFloorOrder, scale, offsetToNorth } = {

12715
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save