|
@@ -94,12 +94,13 @@
|
|
|
})
|
|
|
},
|
|
|
handleUpdate: function (row, index, done) {
|
|
|
- if (row.accessTokenValidity === 0) {
|
|
|
+ if (row.accessTokenValidity === undefined) {
|
|
|
row.accessTokenValidity = 60 * 60 * 12
|
|
|
}
|
|
|
- if (row.refreshTokenValidity === 0) {
|
|
|
+ if (row.refreshTokenValidity === undefined) {
|
|
|
row.refreshTokenValidity = 60 * 60 * 24 * 30
|
|
|
}
|
|
|
+
|
|
|
putObj(row).then(() => {
|
|
|
this.$message.success('修改成功');
|
|
|
this.refreshChange()
|
|
@@ -107,11 +108,10 @@
|
|
|
})
|
|
|
},
|
|
|
handleSave: function (row, done) {
|
|
|
- row.authorizedGrantTypes = row.authorizedGrantTypes.join(',')
|
|
|
- if (row.accessTokenValidity === 0) {
|
|
|
+ if (row.accessTokenValidity === undefined) {
|
|
|
row.accessTokenValidity = 60 * 60 * 12
|
|
|
}
|
|
|
- if (row.refreshTokenValidity === 0) {
|
|
|
+ if (row.refreshTokenValidity === undefined) {
|
|
|
row.refreshTokenValidity = 60 * 60 * 24 * 30
|
|
|
}
|
|
|
addObj(row).then(() => {
|