vue2-client 1.18.59 → 1.18.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.18.59",
3
+ "version": "1.18.60",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -97,7 +97,13 @@ export default {
97
97
  watch: {},
98
98
  components: {},
99
99
  created () {
100
- post(commonApi.getEmpTree, {}).then(res => {
100
+ let api
101
+ if (this.compatible === 'OA') {
102
+ api = '/api/af-system/logic/getEmpTree'
103
+ } else {
104
+ api = '/api/af-oa/logic/getEmpTree'
105
+ }
106
+ post(api, {}).then(res => {
101
107
  this.sourceTreeData = res
102
108
  })
103
109
  },
@@ -41,8 +41,6 @@ const commonApi = {
41
41
  upload: 'resource/upload',
42
42
  // 文件实体操作
43
43
  fileEntity: 'entity/t_files',
44
- // 获取所有员工及其部门的级联菜单数据
45
- getEmpTree: '/api/af-system/logic/getEmpTree',
46
44
  // 获取表格列配置
47
45
  getColumnsJson: '/api/af-system/logic/getColumns',
48
46
  // v4文件删除