本地运行文件打开的确是上次的文件

将运行模式改成hash即可
vscode找到manifest.json文件

"h5": {
    
    
        "router": {
    
    
            "mode": "hash",
            "base": "/h5/"
        },
        "devServer": {
    
    
            "https": false,
            "proxy": {
    
    
                "/": {
    
    
                    "ws": false,
                    "target": "http://yyshop.spj.cn",
                    "changeOrigin": true,
                    "secure": false
                }
            }
        },
        "title": " ",
        "sdkConfigs": {
    
    
            "maps": {
    
    
                "qqmap": {
    
    
                    "key": ""
                }
            }
        },
        "template": "tj.html"
    }

HBuilderX找到配置选择hash即可
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xiaokangna/article/details/126223386
今日推荐