How to distinguish if multiple imort come in with the same method name in vue.js?

import { Search } from "@/api/dishes";
import { Search } from "@/api/combo";

for example, in the above code, there are two Search methods at the same time. How to distinguish them at this time? is there a namespace? Or do you have to change the name of a function?

May.31,2021

as this thing can be found by looking up the document

clipboard.png


pressing your method will overwrite the previous

Menu