Your Name
2022-12-01 f7f647a20cca0d106473e6a862b85d89a7a93d19
堆栈溢出
已修改5个文件
51 ■■■■■ 文件已修改
src/components/uploaderFile/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.ts 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/facilityManagement/goodsDetailManage/components/checkOut.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intellectInspect/intelligentLine/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/loginPage.js/login.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/uploaderFile/index.vue
@@ -65,7 +65,6 @@
            goalManagementApi()
                    .searchFile(uploadFile.name)
                    .then((res) => {
                        debugger
                        window.open(res.data, "_blank");
                    })
            dialogImageUrl.value = uploadFile.url!;
src/router/index.ts
@@ -66,36 +66,32 @@
// 路由加载前
router.beforeEach(async (to, from, next) => {
    if (to.path === '/intelligentLine') {
    NProgress.configure({ showSpinner: false });
    if (to.meta.title) NProgress.start();
    const token = Session.get('token');
    if (to.path === '/login' && !token) {
        next();
        NProgress.done();
    } else {
        NProgress.configure({ showSpinner: false });
        if (to.meta.title) NProgress.start();
        const token = Session.get('token');
        if (to.path === '/login' && !token) {
            next();
        if (!token) {
            next(`/login?redirect=${to.path}&params=${JSON.stringify(to.query ? to.query : to.params)}`);
            Session.clear();
            NProgress.done();
        } else if (token && to.path === '/login') {
            next('/home');
            NProgress.done();
        } else {
            if (!token) {
                next(`/login?redirect=${to.path}&params=${JSON.stringify(to.query ? to.query : to.params)}`);
                Session.clear();
                NProgress.done();
            } else if (token && to.path === '/login') {
                next('/home');
                NProgress.done();
            } else {
                const storesRoutesList = useRoutesList(pinia);
                const { routesList } = storeToRefs(storesRoutesList);
                if (routesList.value.length === 0) {
            const storesRoutesList = useRoutesList(pinia);
            const { routesList } = storeToRefs(storesRoutesList);
            if (routesList.value.length === 0) {
                    // 后端控制路由:路由数据初始化,防止刷新时丢失
                    await initBackEndControlRoutes();
                    // 动态添加路由:防止非首页刷新时跳转回首页的问题
                    // 确保 addRoute() 时动态添加的路由已经被完全加载上去
                    next({ ...to, replace: true });
                } else {
                    next();
                }
                // 后端控制路由:路由数据初始化,防止刷新时丢失
                await initBackEndControlRoutes();
                // 动态添加路由:防止非首页刷新时跳转回首页的问题
                // 确保 addRoute() 时动态添加的路由已经被完全加载上去
                next({ ...to, replace: true });
            } else {
                next();
            }
        }
    }
src/views/facilityManagement/goodsDetailManage/components/checkOut.vue
@@ -41,7 +41,7 @@
<script setup lang="ts">
import {defineEmits, reactive} from "vue";
import { reactive} from "vue";
import {checkOutStateType, GoodsDetailDataType} from "/@/views/facilityManagement/goodsDetailManage/index";
import {teamManageApi} from "/@/api/systemManage/basicDateManage/personShiftManage/teamManage";
import {ElMessage} from "element-plus/es";
src/views/intellectInspect/intelligentLine/index.vue
@@ -151,7 +151,6 @@
                    alert('您的浏览器不支持socket');
                } else {
                    // 实例化socket
                    debugger
                    let uid =  userInfos.value.uid.toString()
                    var url = state.path + uid + '*' + id;
                    console.log(url,'url',uid,'uid')
static/loginPage.js/login.js
@@ -1520,7 +1520,6 @@
};
window.particlesJS.load = function(tag_id, path_config_json, callback){
debugger
  /* load json config */
  var xhr = new XMLHttpRequest();
  xhr.open('GET', path_config_json);