Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一个方法里的不同位置进行注入代码@Inject,发现只有第一个能生效,后面都不能生效 #115

Open
ZhengXiuQun opened this issue May 11, 2021 · 2 comments

Comments

@ZhengXiuQun
Copy link

@Inject("package:dio/src/adapters/io_adapter.dart","DefaultHttpClientAdapter","-fetch",lineNum: 64)
@pragma("vm:entry-point")
void fetch56Inject()
{
dynamic route1 = this;
print('${route1}');
print('fetchInject test 56');
}

@Inject("package:dio/src/adapters/io_adapter.dart","DefaultHttpClientAdapter","-fetch",lineNum: 44)
@pragma("vm:entry-point")
void fetch44Inject()
{
dynamic route1 = this;
print('${route1}');
print('fetchInject test 44');
}
只能生效64行注入的,44行注入的不能生效

@ZhengXiuQun ZhengXiuQun changed the title 同一个方法里的不同位置进行注入代码,发现只有第一个能生效,后面都不能生效 同一个方法里的不同位置进行注入代码@Inject,发现只有第一个能生效,后面都不能生效 May 11, 2021
@itlwy
Copy link

itlwy commented May 31, 2021

请问这个问题有进展吗?

@ZhengXiuQun
Copy link
Author

@kangwang1988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants