修改样式
This commit is contained in:
1 parent
40e4e65aea
commit
a34b58fdae
2 files changed
+293
-267
No files matched your search
@@ -39,7 +39,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import user from "@/sheep/api/user"
|
||||
import { userApi } from "@/sheep/api"
|
||||
import { ref } from "vue"
|
||||
|
||||
const userRole = ref("user")
|
||||
@@ -55,7 +55,7 @@ const confirmRole = async () => {
|
||||
}
|
||||
if (userRole.value === "merchant") {
|
||||
uni.showLoading({ title: "正在验证身份", mask: true })
|
||||
const res = await user.isMerchant().finally(() => uni.hideLoading())
|
||||
const res = await userApi.isMerchant().finally(() => uni.hideLoading())
|
||||
if (res.code == 0) {
|
||||
if (res.data) {
|
||||
uni.setStorageSync("userRole", userRole.value)
|
||||
|
||||
Reference in new issue
Block a user