|
@@ -218,6 +218,8 @@ import Header from "@components/home/header.vue";
|
|
|
import Footer from "@components/home/Footer.vue";
|
|
import Footer from "@components/home/Footer.vue";
|
|
|
import { computed, ref, onMounted, onBeforeUnmount, nextTick } from "vue";
|
|
import { computed, ref, onMounted, onBeforeUnmount, nextTick } from "vue";
|
|
|
import { Icon } from "@iconify/vue";
|
|
import { Icon } from "@iconify/vue";
|
|
|
|
|
+import banner from "@/assets/images/flwoBanner.png";
|
|
|
|
|
+import banner_white from "@/assets/images/flwoBanner_white.png";
|
|
|
import {
|
|
import {
|
|
|
getFlows,
|
|
getFlows,
|
|
|
ssoLogin,
|
|
ssoLogin,
|
|
@@ -226,12 +228,14 @@ import {
|
|
|
getSRMTasks,
|
|
getSRMTasks,
|
|
|
} from "@/api/user";
|
|
} from "@/api/user";
|
|
|
import { useUserStore } from "@/stores/useUserStore";
|
|
import { useUserStore } from "@/stores/useUserStore";
|
|
|
|
|
+import { useThemeStore } from "@/stores/useThemeStore";
|
|
|
import { getAccessToken } from "@/utils/auth";
|
|
import { getAccessToken } from "@/utils/auth";
|
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
|
import dd from "dingtalk-jsapi";
|
|
import dd from "dingtalk-jsapi";
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
import { ElLoading, ElMessage } from "element-plus";
|
|
import { ElLoading, ElMessage } from "element-plus";
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
|
|
+const themeStore = useThemeStore();
|
|
|
|
|
|
|
|
// 1. 定义 Ref
|
|
// 1. 定义 Ref
|
|
|
const tabsContainerRef = ref(null);
|
|
const tabsContainerRef = ref(null);
|
|
@@ -415,37 +419,6 @@ const go = async (item) => {
|
|
|
const ua = window.navigator.userAgent.toLowerCase();
|
|
const ua = window.navigator.userAgent.toLowerCase();
|
|
|
|
|
|
|
|
if (ua.includes("dingtalk") || ua.includes("dingtalkwork")) {
|
|
if (ua.includes("dingtalk") || ua.includes("dingtalkwork")) {
|
|
|
- // 钉钉环境
|
|
|
|
|
- // const loading = ElLoading.service({
|
|
|
|
|
- // lock: true,
|
|
|
|
|
- // text: "正在跳转,请稍候...",
|
|
|
|
|
- // background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
|
- // });
|
|
|
|
|
-
|
|
|
|
|
- // const targetUrl1 = item.indexUrl + "?ssoToken=" + res + "#/main";
|
|
|
|
|
- // const targetUrl2 = item.flowUrl;
|
|
|
|
|
-
|
|
|
|
|
- // dd.biz.util.openLink({
|
|
|
|
|
- // url: targetUrl1,
|
|
|
|
|
- // onSuccess: () => {
|
|
|
|
|
- // setTimeout(() => {
|
|
|
|
|
- // dd.biz.util.openLink({
|
|
|
|
|
- // url: targetUrl2,
|
|
|
|
|
- // onSuccess: () => {
|
|
|
|
|
- // loading.close();
|
|
|
|
|
- // },
|
|
|
|
|
- // onFail: (err) => {
|
|
|
|
|
- // loading.close();
|
|
|
|
|
- // ElMessage.error("跳转失败,请重试");
|
|
|
|
|
- // },
|
|
|
|
|
- // });
|
|
|
|
|
- // }, 2000);
|
|
|
|
|
- // },
|
|
|
|
|
- // onFail: (err) => {
|
|
|
|
|
- // loading.close();
|
|
|
|
|
- // ElMessage.error("打开链接失败,请重试");
|
|
|
|
|
- // },
|
|
|
|
|
- // });
|
|
|
|
|
if (window.dd) {
|
|
if (window.dd) {
|
|
|
const targetUrl = item.appUrl;
|
|
const targetUrl = item.appUrl;
|
|
|
if (targetUrl) {
|
|
if (targetUrl) {
|