mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
workflow: use pinia replace vuex and fix some bug
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { defineComponent } from "vue";
|
||||
import { defineComponent } from "vue"
|
||||
export default defineComponent({
|
||||
name: "HamBurger",
|
||||
props: {
|
||||
@@ -28,10 +28,10 @@ export default defineComponent({
|
||||
emits: ["toggleClick"],
|
||||
setup(props, ctx) {
|
||||
const toggleClick = () => {
|
||||
ctx.emit("toggleClick");
|
||||
};
|
||||
ctx.emit("toggleClick")
|
||||
}
|
||||
|
||||
return { toggleClick };
|
||||
return { toggleClick }
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user