| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <view class="legacy-tip">
- <text>正在打开…</text>
- </view>
- </template>
- <script>
- // 人事管理聚合页已拆分;当前 HR 模块为员工自助(只管理自己),
- // 菜单直达「发起页」,不再经过列表页。本页只保留历史链接的转发能力。
- // 兼容 /pages/hr/manage/index?type=onboard|transfer|regular|resign
- const ENTRY_PAGES = {
- onboard: "/pages/hr/manage/onboard-create",
- transfer: "/pages/hr/manage/transfer-create",
- regular: "/pages/hr/manage/regular-create",
- resign: "/pages/hr/manage/resign-handover",
- };
- export default {
- data() {
- return {
- target: ENTRY_PAGES.onboard,
- };
- },
- onLoad(options) {
- const type = (options && options.type) || "onboard";
- this.target = ENTRY_PAGES[type] || ENTRY_PAGES.onboard;
- uni.redirectTo({
- url: this.target,
- fail: () => {
- uni.showToast({ title: "页面不存在", icon: "none" });
- },
- });
- },
- };
- </script>
- <style scoped lang="scss">
- .legacy-tip {
- padding-top: 200rpx;
- text-align: center;
- color: #9aa1aa;
- font-size: 26rpx;
- }
- </style>
|