替换infopath项目,采用SharePoint SPFX框架
css
uatadmin
2024-08-21 426632e0a80fc7483ab07ec94e3d76f7bfdf2957
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
  <div style="width:1250px;">
    <RouterView />
    <div class="routes" v-if="isDev">
      <RouterLink v-for="item in routes" :key="item.name" :to="item.path">{{
        item.name
      }}</RouterLink>
    </div>
  </div>
</template>
<script setup>
import routes from "@/router/routes.js";
import {getParams} from "./utils/index";
import router from './router/index'
 
const isDev = isDevelopment;
if (isDev) {
  console.log("开发环境");
} else {
  console.log("生产环境");
}
let urlParams = getParams(location.href);
  let routePath = urlParams('ProcessName')
  if (!!routePath) {
    router.push({
      name: routePath
    });  
  }
</script>
 
<style lang="less" scoped>
.routes {
  position: fixed;
  top: 0;
  left: 0;
  a{
    color: #008c8c;
    border: 1px solid #008c8c;
    margin: 5px;
    &:hover{
      background-color: #e0e0e0;
    }
  }
}
</style>