Create a new file in src
// Configure the global interface domain nameconst domain = '/'; export default { testUrl:domain }
middle
import domain from './'; = domain;
In the component:
data () { return { imgsrc:}}
The above method of implementing the interface domain name configuration as a global variable in vue is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.