Commit 1ba56d5b by hank

bug

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