Browse Source

fix: 修改项目详情页返回首页bug

wrr
song 4 years ago
parent
commit
e942887436
  1. 1
      CHANGELOG.md
  2. 5
      public/index.html
  3. 7
      src/components/Title/Title.vue
  4. 2
      src/pages/project/project.vue

1
CHANGELOG.md

@ -162,6 +162,7 @@
- | 角色栏修改 | [19228d6](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/19228d6)
- | 角色滚动问题修复 | [c8ee189](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/c8ee189)
- | 解决时间轴报错 | [da1eece](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/da1eece)
- | 解决进项目角色id不更新问题 | [3b400df](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/3b400df)
- | 设置时间轴自动滚动到当前位置 | [a3474f8](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/a3474f8)
- | 调试定期任务bug;不能合并使用 | [d641312](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/d641312)
- | 跳转详情页返回路径修改 | [c5e17c0](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/c5e17c0)

5
public/index.html

@ -16,6 +16,11 @@
</script>
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@2.2.7/dist/tailwind.min.css">
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.0/vconsole.min.js"></script>
<script>
var vConsole = new VConsole();
</script> -->
</head>
<body>

7
src/components/Title/Title.vue

@ -101,11 +101,12 @@ export default {
onBack() {
// eslint-disable-next-line no-undef
const pages = getCurrentPages(); //
console.log('历史pages: ', pages.length);
if (pages.length > 1) {
uni.navigateBack();
uni.webView.navigateBack();
} else {
// this.$u.route('/', { u: this.userId });
uni.webView.redirectTo({ url: `/pages/index/index?u=${this.userId}` });
uni.webView.reLaunch({ url: `/pages/index/index?u=${this.userId}` });
}
},
@ -120,7 +121,7 @@ export default {
//
openIndex() {
console.log(111);
uni.webView.redirectTo({ url: `/pages/index/index?u=${this.userId}` });
uni.webView.reLaunch({ url: `/pages/index/index?u=${this.userId}` });
},
//

2
src/pages/project/project.vue

@ -304,11 +304,9 @@ export default {
this.$t.ui.showToast('缺少项目信息参数'); // id
} else {
if (options.p !== this.$t.storage.getStorageSync('projectId')) {
console.log('换项目了');
this.$t.storage.setStorageSync('roleId', '');
}
// TODO
console.log('项目id: ', options.p);
this.getProjectById({ projectId: options.p, num: 0 }); // id
}
},

Loading…
Cancel
Save