@leevan/jtui 2.0.29 → 2.0.31

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": "@leevan/jtui",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1259,7 +1259,7 @@ export default {
1259
1259
  this.timeOut = setTimeout(() => {
1260
1260
  let ch = $event.target.clientHeight;
1261
1261
  let sh = $event.target.scrollHeight;
1262
- if (scrollTop + ch >= sh && scrollTop != 0) {
1262
+ if (Math.ceil(scrollTop + ch) >= sh && scrollTop != 0) {
1263
1263
  this.$emit("scrollBottom", ++this.pageIndex);
1264
1264
  }
1265
1265
  }, 200);
@@ -124,7 +124,13 @@ export default {
124
124
  type: file.type
125
125
  })
126
126
  .then((response) => {
127
- this.$emit('success',response);
127
+ if(('Result' in response.data) && response.data.Result == 500){
128
+ const activeIndex = this.$refs.list.fileList.findIndex(item => item.name == file.name && item.size == file.size)
129
+ this.$refs.list.fileList.splice(activeIndex,1)
130
+ this.$message.warning(file.name + response.data.Msg + ',请重新上传')
131
+ }else{
132
+ this.$emit("success", response);
133
+ }
128
134
  })
129
135
  .catch(function(error) {
130
136
  console.log(error);
package/vue.config.js CHANGED
@@ -1,3 +1,10 @@
1
+ /*
2
+ * @Author: leevan
3
+ * @Date: 2022-01-15 17:02:55
4
+ * @LastEditTime: 2023-10-12 16:04:14
5
+ * @LastEditors: leevan
6
+ * @FilePath: /jtui-pc/vue.config.js
7
+ */
1
8
  module.exports = {
2
9
  lintOnSave: false, //代码规范检测开关
3
10
  pages: {
@@ -10,8 +17,8 @@ module.exports = {
10
17
  devServer:{
11
18
  proxy:{
12
19
  '/':{
13
- // target:'http://192.168.10.151:8088',
14
- target:'http://127.0.0.1:38781',
20
+ target:'http://mxe5zg.natappfree.cc',
21
+ // target:'http://127.0.0.1:38781',
15
22
  ws:true,
16
23
  changeOrigin:true,
17
24
  pathRewrite:{