|
@@ -19,7 +19,7 @@ const initialization = (() => {
|
|
|
</select>`;
|
|
|
// 设置分享按钮
|
|
|
const shareHtml = `
|
|
|
- <span id="share-tip" class="ml-2" data-toggle="tooltip" data-placement="bottom" data-original-title="sddsd">
|
|
|
+ <span id="share-tip" class="ml-2" data-toggle="tooltip" data-placement="bottom" data-original-title="">
|
|
|
<a id="init-share" href="javascript:;" class="btn btn-xs btn-primary"><i class="fa fa-share-alt"></i> 分享</a>
|
|
|
</span>`;
|
|
|
const html = `
|
|
@@ -41,9 +41,11 @@ const initialization = (() => {
|
|
|
|
|
|
// 定额库下拉
|
|
|
function initShareTip(shareList) {
|
|
|
- const owners = shareList.map(owner => owner.real_name);
|
|
|
- const tips = `已分享给 ${owners.join(' ')}`;
|
|
|
- $('#share-tip').attr('data-original-title', tips);
|
|
|
+ if (shareList.length) {
|
|
|
+ const owners = shareList.map(owner => owner.real_name);
|
|
|
+ const tips = `已分享给 ${owners.join(' ')}`;
|
|
|
+ $('#share-tip').attr('data-original-title', tips);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 定额库下拉
|