feat:修改版本及路径跳转

This commit is contained in:
lixg
2023-03-01 17:24:48 +08:00
parent 4d4ec3f8e8
commit bbb3c67cb7
3 changed files with 9 additions and 18 deletions

View File

@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
import { getCookie } from "@/api/utils"; import { getCookie } from "@/api/utils";
import { USER_INFO } from "@/api/api"; import { USER_INFO } from "@/api/api";
console.log("版本1.2.12------------"); console.log("版本1.2.13------------");
const store = useStore(); const store = useStore();
const router = useRouter(); const router = useRouter();

View File

@@ -132,22 +132,13 @@ function toDetail(i) {
if (current.value !== i) { if (current.value !== i) {
return; return;
} }
import.meta.env.MODE === "development" || import.meta.env.MODE === "test" router.push({
? router.push({ path: "/pathmappage",
path: "/pathmappage", query: {
query: { routerId: props.routerId,
routerId: props.routerId, // routerName: props.detail.routerName,
// routerName: props.detail.routerName, },
}, });
})
: window.open(
`${
window.location.protocol + import.meta.env.VITE_BOE_PATH_DETAIL_URL
}/pathmappage&params=${encodeURIComponent(
`routerId=${props.routerId}`
)}`,
"_top"
);
} }
function close() { function close() {

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-01-19 11:28:11 * @Date: 2023-01-19 11:28:11
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-02-28 16:40:49 * @LastEditTime: 2023-03-01 16:43:42
* @FilePath: /stu_h5/src/views/projectdetails/ProjectPath.vue * @FilePath: /stu_h5/src/views/projectdetails/ProjectPath.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->