sonar qube; getCookie refactored
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
export function getCookie(name) {
|
||||
const nameEqual = name + "=";
|
||||
const cookieArr = document.cookie.split(';');
|
||||
for (let i = 0; i < cookieArr.length; i++) {
|
||||
let c = cookieArr[i];
|
||||
while (c.charAt(0) === ' ') {
|
||||
c = c.substring(1, c.length);
|
||||
}
|
||||
|
||||
for (const cookie of cookieArr) {
|
||||
let c = cookie.trim();
|
||||
if (c.indexOf(nameEqual) === 0) {
|
||||
return c.substring(nameEqual.length, c.length);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -426,7 +426,6 @@ export default {
|
||||
this.isLoading = true;
|
||||
this.infiniteFinish = false;
|
||||
this.infiniteStart += ONCE_RENDER_NUM_OF_DATA;
|
||||
// await this.acctMgmtStore.getAccountDetail();
|
||||
this.infiniteAcctDataVue2 = await [...this.infiniteAcctDataVue2, ...this.allUserAccoutList.slice(
|
||||
this.infiniteStart, this.infiniteStart + ONCE_RENDER_NUM_OF_DATA)];
|
||||
this.isInfiniteFinish = true;
|
||||
@@ -452,9 +451,6 @@ export default {
|
||||
},
|
||||
created() {
|
||||
},
|
||||
mounted() {
|
||||
this.isLoading = false; //TODO:
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
|
||||
@@ -42,8 +42,6 @@ export default {
|
||||
name,
|
||||
is_admin,
|
||||
is_active,
|
||||
is_sso,
|
||||
has_data,
|
||||
} = currentViewingUser.value;
|
||||
|
||||
onBeforeMount(async() => {
|
||||
|
||||
Reference in New Issue
Block a user