This commit is contained in:
parent
2989b52fa1
commit
73ea741726
|
|
@ -194,11 +194,11 @@ export default {
|
||||||
async getDetail() {
|
async getDetail() {
|
||||||
const id = this.$route.query.id
|
const id = this.$route.query.id
|
||||||
if (id === 'new') {
|
if (id === 'new') {
|
||||||
this.isNew = false
|
this.isNew = true
|
||||||
this.baseInfo.createUser = this.$store.state.user?.nickName || '当前用户'
|
this.baseInfo.createUser = this.$store.state.user?.nickName || '当前用户'
|
||||||
this.baseInfo.createTime = new Date().toLocaleString()
|
this.baseInfo.createTime = new Date().toLocaleString()
|
||||||
} else {
|
} else {
|
||||||
this.isNew = true
|
this.isNew = false
|
||||||
// 从query参数中获取任务基本信息
|
// 从query参数中获取任务基本信息
|
||||||
const taskInfoStr = this.$route.query.taskInfo
|
const taskInfoStr = this.$route.query.taskInfo
|
||||||
if (taskInfoStr) {
|
if (taskInfoStr) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue