问题描述
我就是按照特别正常的操作进行引用,但是就一直显示axios的get未定义;
问题解决
本来我是使用的this.$axios.get,引用的全局变量,
然后直接改成这样(在该vue界面定义的import,没有使用全局变量):


就能解决这个问题啦!

- 【五期李伟平】CCF-A(AAAI'21)Game of Gradients: Mitigating Irrelevant Clients in Federated Learning
- 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
- Python中出现"No module named 'requests'"的图文解决办法
- fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
- ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
- mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
- mybatis提示com.microsoft.sqlserver.jdbc.SQLServerException: 列名 'xxxx' 无效。
- Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'
- 初中英语优秀范文100篇-055My Father's Job-我父亲的工作
- SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
本栏目推荐文章