| 12345678910111213141516171819202122232425262728 |
- import axios from "axios"
- function _like() {
- return axios({
- method: 'post',
- url: `http://project.4dage.com:8036/api/visit/saveType`,
- headers: {
- appId: "E9A27605CEB3FFAF48F4D7B86858A03D9868419F60B5A45027FB6E6867F4EDA9",
- "Content-Type": "application/json",
- },
- data: {
- moduleType: "web",
- type: 'star',
- },
- })
- }
- export default {
- like: globalUtils.throttle(_like, 2000),
- async fetchPanoData() {
- const res = await axios({
- method: 'get',
- url: `https://zzbbh.4dage.com/YHT/Qjkk/local/WK1578926366500417536/someData.json?_=${Math.random()}`,
- })
- console.log('fetch pano data: ', res.data)
- return res.data
- },
- }
|