@leevan/jtui 2.0.30 → 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/examples/form/form.vue +11 -1
- package/lib/jtui.common.js +75 -28
- package/lib/jtui.css +1 -1
- package/lib/jtui.umd.js +75 -28
- package/lib/jtui.umd.min.js +6 -6
- package/package.json +1 -1
- package/packages/jt-upload-pc/JtUploadPc.vue +7 -1
- package/vue.config.js +9 -2
- package/yarn.lock +9248 -0
package/package.json
CHANGED
|
@@ -124,7 +124,13 @@ export default {
|
|
|
124
124
|
type: file.type
|
|
125
125
|
})
|
|
126
126
|
.then((response) => {
|
|
127
|
-
|
|
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
|
-
|
|
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:{
|