Git Product home page Git Product logo

Comments (9)

xiaoxian521 avatar xiaoxian521 commented on June 2, 2024

给我一个简单的demo 传到github仓库 我抽空帮你改一下

from vue-pure-admin.

journeyto avatar journeyto commented on June 2, 2024

demo.zip
感谢感谢 @xiaoxian521

from vue-pure-admin.

xiaoxian521 avatar xiaoxian521 commented on June 2, 2024

传到github仓库,安装包不友好

from vue-pure-admin.

journeyto avatar journeyto commented on June 2, 2024

没有经常使用github,我的理解是上传到我自己的仓库? 我上传到 https://github.com/journeyto/pure-admin-thin 这个地址了。

from vue-pure-admin.

xiaoxian521 avatar xiaoxian521 commented on June 2, 2024

var tableData = ref([]);
改为响应式
你应该多参考demo啊 demo里全面都是响应式写法

from vue-pure-admin.

journeyto avatar journeyto commented on June 2, 2024

感谢作者,太给力了。
其实我最开始是使用的ref响应式写法,但是后面在tableData.filter这个地方会报错" tableData.filter is not a function",
我想着用toRaw方法,把它转为普通对象,结果还是不行。
所以后面才另外想办法,结果方向走错了。

from vue-pure-admin.

journeyto avatar journeyto commented on June 2, 2024

前端太菜了,折腾了半天,这个问题还是搞不定,

还是要麻烦作者有空的时候帮忙看看怎么改。

我改为了响应式的写法,现在的报错信息是 tableData.filter is not a function

感谢感谢^_^

from vue-pure-admin.

xiaoxian521 avatar xiaoxian521 commented on June 2, 2024

这周我都能很忙,这属于vue3基础知识哈,你可以问问你的前端朋友们

from vue-pure-admin.

journeyto avatar journeyto commented on June 2, 2024

说声抱歉,又来打扰了。

我前面表述的可能有些问题,把 tableData 改为响应式之后,我打印了下日志,感觉还是有最开始的问题,也就是会先计算filterTableData 的值,后面才去调用异步函数获取后台数据, 前面的 报错信息"tableData.filter is not a function" 可以忽略了。

PS:上周问了下我们开发,居然不懂VUE3,或者不太会用,现在居然还是用的bootstrap和jQuery这种多年前的技术[\汗]

作者有空的时候帮忙看下呢,我这个内部开发项目,不着急。

from vue-pure-admin.

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.