Giter Site home page Giter Site logo

Comments (7)

yangyanggu avatar yangyanggu commented on June 4, 2024

数据结构有问题吧

from vue-amap.

Frank2-Liu avatar Frank2-Liu commented on June 4, 2024

数据结构有问题吧

定义了一个markers的ref空数组,请求回来之后直接替换。数组内部的每个对象包含经纬度组、下标、附带一个data对象(包含一些item数据)。
而且最蛋疼的问题是,在本地调试都ok,部署在线上环境后直接卡死。

from vue-amap.

yangyanggu avatar yangyanggu commented on June 4, 2024

正常应该不会这样,你贴一下矢量图形使用的代码,还有数据的结构

from vue-amap.

Frank2-Liu avatar Frank2-Liu commented on June 4, 2024

正常应该不会这样,你贴一下矢量图形使用的代码,还有数据的结构

使用组件

code

数据结构

code1

from vue-amap.

yangyanggu avatar yangyanggu commented on June 4, 2024

从数据来看没什么问题,尝试着换一下vue版本看看

from vue-amap.

Frank2-Liu avatar Frank2-Liu commented on June 4, 2024

从数据来看没什么问题,尝试着换一下vue版本看看

好的,下周试一下。目前是将渲染的点全部去除响应式了。

不过有一点很奇怪。

使用 build:prod 的时候,涉及到响应式数据就会卡死。

而使用 build:test 的时候,虽然依旧会有报错,但却可以运行而不至于卡死。

初步推测是由于drop_debugger属性的原因,但将其属性修改为false之后依旧会卡死。之前又看到文章说打包后有报错会阻塞进程,也有怀疑过地图异步加载的问题,不过我也做了一些应对。目前卡在这里了,看后续能不能找破解之法。

from vue-amap.

yangyanggu avatar yangyanggu commented on June 4, 2024

2.0.21版本的组件在给地图实例传递数据时做了去proxy和ref的处理,你可以试下最新的版本

from vue-amap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.