|
@@ -19,9 +19,10 @@ export type MenuItem = {
|
|
|
};
|
|
|
|
|
|
export const getFuseCodeLink = (caseId: number, query?: boolean) => {
|
|
|
- const params: { token?: string; caseId: string; app: string } = {
|
|
|
+ const params: { token?: string; caseId: string; app: string, isSample: any } = {
|
|
|
caseId: caseId.toString(),
|
|
|
app: appConstant.deptId.toString(),
|
|
|
+ isSample: appConstant.isSample.toString(),
|
|
|
};
|
|
|
|
|
|
if (!query) {
|
|
@@ -98,7 +99,7 @@ export const getQuery = (
|
|
|
isSample: 0,
|
|
|
) =>
|
|
|
`${getFuseCodeLink(caseId, true)}${share ? "&share=1" : ""}${single ? "&single=1" : ""
|
|
|
- }${`&isSample=${isSample}`}#show/summary`;
|
|
|
+ }${`&isSample=${isSample.toString()}`}#show/summary`;
|
|
|
|
|
|
// 查看
|
|
|
export const gotoQuery = (caseId: number, isSample) => {
|
|
@@ -306,7 +307,7 @@ export const openSceneUrl = async (scene: Scene, type: OpenType) => {
|
|
|
url.hash = "#sign-model";
|
|
|
url.searchParams.append("share", "1");
|
|
|
url.searchParams.append("app", appConstant.deptId.toString());
|
|
|
- url.searchParams.append("isSample", appConstant.isSample);
|
|
|
+ url.searchParams.append("isSample", appConstant.isSample.toString());
|
|
|
} else {
|
|
|
url.searchParams.append("m", (scene as QuoteScene).num);
|
|
|
|