|
@ -1,9 +1,9 @@ |
|
|
<template> |
|
|
<template> |
|
|
<!-- 任务名插件 --> |
|
|
<!-- 任务名插件 --> |
|
|
<!-- <view>{{ task.name }}</view> --> |
|
|
<!-- <view>{{ task.name }}</view> --> |
|
|
<view class="flex justify-between items-center" @click="postMsg(param)"> |
|
|
<view class="flex justify-between items-center h-8 text-gray-700" @click="postMsg(param)"> |
|
|
<view class="flex-1">{{ task.name }}</view> |
|
|
<view class="flex-1">{{ task.name }}</view> |
|
|
<img style="height: 16px" src="https://www.tall.wiki/staticrec/photos/right.png" /> |
|
|
<u-icon name="arrow-right" color="#aaa"></u-icon> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -48,12 +48,12 @@ export default { |
|
|
if (data && data.url) { |
|
|
if (data && data.url) { |
|
|
const baseUrl = process.env.VUE_APP_BASE_URL; |
|
|
const baseUrl = process.env.VUE_APP_BASE_URL; |
|
|
const url = `${baseUrl}/${data.url}?u=${this.userId}&p=${this.projectId}&t=${this.task.id}`; |
|
|
const url = `${baseUrl}/${data.url}?u=${this.userId}&p=${this.projectId}&t=${this.task.id}`; |
|
|
console.log('发消息: ', url); |
|
|
|
|
|
const msg = { |
|
|
const msg = { |
|
|
event: 'openDetail', |
|
|
event: 'openDetail', |
|
|
data: data.local ? data.url : url, |
|
|
data: data.local ? data.url : url, |
|
|
local: data.local, |
|
|
local: data.local, |
|
|
}; |
|
|
}; |
|
|
|
|
|
console.log('发消息: ', msg); |
|
|
top.postMessage(msg, '*'); |
|
|
top.postMessage(msg, '*'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|