Skip to content

Commit

Permalink
fix: 打包后route 不支持json格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Aug 22, 2022
1 parent 7deb74a commit c9c33ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/layout/components/header/components/tagBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const setTag = (route: RouteLocationNormalized) => {
if (index > -1) {
return jump(index);
}
tags.push(JSON.parse(JSON.stringify(route)));
tags.push(route);
return jump(tags.length - 1);
}
};
Expand Down
6 changes: 4 additions & 2 deletions src/views/dashboard/index.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<template>
<div class="index">
hello word!
<input name="text" />
<input name="text" v-model="value" />
</div>
</template>
<script setup lang="ts" name="Dashboard"></script>
<script setup lang="ts" name="Dashboard">
const value=ref('')
</script>

<style lang="scss" scoped>
.index {
Expand Down

0 comments on commit c9c33ae

Please sign in to comment.