Update edit-archive.vue
This commit is contained in:
parent
932ec63261
commit
dc7d1b082a
@ -153,6 +153,7 @@ async function bindArchive(customerId) {
|
|||||||
const res = await api('bindMiniAppArchive', { id: customerId, corpId: corpId.value, teamId: teamId.value, miniAppId: account.value.openid });
|
const res = await api('bindMiniAppArchive', { id: customerId, corpId: corpId.value, teamId: teamId.value, miniAppId: account.value.openid });
|
||||||
if (res && res.success) {
|
if (res && res.success) {
|
||||||
await toast('绑定成功');
|
await toast('绑定成功');
|
||||||
|
uni.$emit('reloadTeamCustomers')
|
||||||
set('home-invite-teamId', teamId.value);
|
set('home-invite-teamId', teamId.value);
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/home/home'
|
url: '/pages/home/home'
|
||||||
@ -183,7 +184,7 @@ async function init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getArchives() {
|
async function getArchives() {
|
||||||
const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: account.value.mobile });
|
const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: '13456900981' || account.value.mobile });
|
||||||
if (res && res.success) {
|
if (res && res.success) {
|
||||||
corpName.value = res.corpName;
|
corpName.value = res.corpName;
|
||||||
customers.value = Array.isArray(res.data) ? res.data : [];
|
customers.value = Array.isArray(res.data) ? res.data : [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user