vue project packaging txt file to the root directory, Baidu applet H5 site association operation method

H5 site association management

If the mini program wants to replace existing H5 site resources in the search, it needs to associate the H5 site first.
1.Insert image description here

2.Insert image description here

3.Insert image description here
4.Insert image description here

{
    
    
    path: "/bd_mapp_domaincer_21829225.txt",
    name: "baidubd",
    component: () =>
        import ("../public/bd_mapp_domaincer_21829225.txt"),
    meta: {
    
    
        title: "房产网_新楼盘_房价-喜欢房",
    },
},

After packaging in this way, you can access the txt file!

Guess you like

Origin blog.csdn.net/ws19900201/article/details/108428242