Commit 1ba56d5b by hank

bug

parent 22b83831
......@@ -11,9 +11,8 @@
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<title>Vmatrix</title>
<script>
window.jsbridge && window.jsbridge.init()
// console.log(jsbridge)
// arr[index-1] ? arr[index-1].img : '没有了'
window.jsbridge && window.jsbridge.init();
</script>
</head>
<body>
......
......@@ -32,6 +32,7 @@ const router = new Router({
return { x: 0, y: 0 }
}
},
mode: 'history',
routes: [
{
path: '',
......
......@@ -221,6 +221,10 @@ export default {
window.onunload = function() {
window.wx.miniProgram.navigateBack({});
};
window.addEventListener("popstate", () => {
window.wx.miniProgram.navigateBack();
console.log('wx.miniProgram.navigateBack()')
});
let vm = this;
if(sessionStorage.getItem('is_mini_token')) {
......
......@@ -131,6 +131,10 @@ export default {
},
mounted() {
document.title = "视片详情";
window.addEventListener("popstate", () => {
window.wx.miniProgram.navigateBack();
console.log('wx.miniProgram.navigateBack()')
});
},
methods: {
getFilmList() {
......
......@@ -8,7 +8,7 @@ function resolve(dir) {
}
module.exports = {
publicPath: './',
publicPath: '/',
// 生产环境是否生成 sourceMap 文件
productionSourceMap: false,
//是否为 Babel 或 TypeScript 使用 thread-loader。该选项在系统的 CPU 有多于一个内核时自动启用,仅作用于生产构建。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment