Skip to content

Commit 3624c7a

Browse files
committed
Merge branch 'dev-1.2.0_k8s' of https://10.30.90.89:10080/luban/dataspherestudio into dev-linkis-1.0.2
2 parents 90b0b31 + 6ce7b23 commit 3624c7a

File tree

2 files changed

+6
-3
lines changed
  • web/src/apps

2 files changed

+6
-3
lines changed

web/src/apps/dataService/module/dataService/index.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ export default {
215215
};
216216
const validateAPIPath = (rule, value, callback) => {
217217
const result = value && value.trim();
218-
const reg = /^[\w_-][\/\w_-]{3,199}$/g;
218+
const reg = /^[\w_-]{4,199}$/g;
219219
if (!reg.test(result)) {
220220
callback(
221221
new Error(
222-
"支持英文、数字、下划线(_)、连字符(-)、正斜线(/),且不能以正斜线(/)开头,4到200个字符"
222+
"支持英文、数字、下划线(_)、连字符(-),且不能以正斜线(/)开头,4到200个字符"
223223
)
224224
);
225225
} else {
@@ -507,11 +507,13 @@ export default {
507507
let tmp = { ...item };
508508
const { data, apiData } = payload;
509509
if (tmp.isActive) {
510+
const newData = { ...apiData, id: data.id, path: apiData.apiPath };
510511
tmp = {
511512
...item,
512513
apiName: data.name,
513514
id: data.id,
514-
data: { ...apiData, id: data.id, path: apiData.apiPath }
515+
data: newData,
516+
originData: {...newData}
515517
};
516518
}
517519
return tmp;

web/src/apps/workflows/module/dispatch/dashboard/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export default {
175175
}
176176
},
177177
getMixedBarLineData(currentDay, cb) {
178+
if (!this.projectName) return
178179
util.checkToken(() => {
179180
api.fetch(`dolphinscheduler/projects/${this.workspaceName}-${this.projectName}/instance/list-paging`, {
180181
pageSize: 1000,

0 commit comments

Comments
 (0)