Code Monkey home page Code Monkey logo

vue-typescript-admin-template's Issues

Full Admin Template Support (PR Welcome!)

Hi all, We start to migrate more features and pages from the original vue-element-admin project, and I created a list of issues to better track the progress. You can help us with that too, just tell me which task you want to work on and I'll assign you that one, any PR is welcome, thanks! :)

app-main Page transition

bug report

Current behavior

跟 vue-element-admin 项目的页面过渡效果不一致,下方出现滚动条。

Expected behavior

没有滚动条

Minimal reproduction of the problem with instructions

登录 -> 点击侧边栏页面 (Form) -> 点击上方的 Dashboard
页面切换时会出现滚动条

修正方式

为 .app-main 添加 overflow:hidden;

来自 vue-element-admin 的 AppMain.vue
code

npm的方式会报错

请问这个支持npm 吗

仓库clone 下来, npm install之后
执行 npm run serve会出现报错

image

拉取master分支添加echart出错

echart部分改为ts时报@prop的参数错误没发现什么错误,如下图
image
然后按照develop分支的写法添加echart,出现新的错误如下:
image
然后安装 case-sensitive-paths-webpack-plugin模块 错误没有改变

eslint error

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'

模块导入相关问题

I'm submitting a feature request

Current behavior

在「vue文件A」中导入「vue文件B」时,
如果B中把ts代码抽为一个单独文件,会导致A导入B时,typescript语法检查阶段报”B is not a module" (虽然不影响实际编译)

Expected behavior

当然是不报红线啦(强迫症看着难受😅)

Minimal reproduction of the problem with instructions

A.vue引入B.vue

<template>
</template>
<script lang="ts">
//! 检查阶段这里报 ”b.vue is not a module" 
import Comp2 from './b.vue' 
export default {}
</script>

B.vue引入单独的ts

<template>
</template>
<script src="./b.ts" lang="ts"></script>

What is the motivation / use case for changing the behavior

如下,如果把B.vue的ts放在一起(而不是引入单独的ts文件),此时A.vue的导入就恢复正常了

B.vue

<template>
</template>
<script lang="ts">
export default {}
</script>

Environment

system version: osx
ide: vscode
package manager: npm
typescript:3.3.4000

我在引入 npm install -save @types/cesium后,出现错误Module parse failed: Unexpected character '#' (1:0)

我在引入 npm install -save @types/cesium后,获取对象,启动服务
出现错误
error in ./node_modules/requirejs/bin/r.js

Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.

#!/usr/bin/env node
| /**
| * @license r.js 2.3.6 Copyright jQuery Foundation and other contributors.

@ ./node_modules/cesium/index.js 5:16-36

应该是webpack识别不了#号,求解决方法。

UserModule.GetInfo()始终执行then

permission.ts下
UserModule.GetInfo().then(() => {
next();
}).catch((err) => {
//不会进入此处
});
GetInfo里抛出异常,不会进入catch,始终是在then函数里。
浏览器log Could not perform action GetInfo。
不知道是不是只有我这样?捣鼓了一天没有解决掉。

初始化vue-cli3报错

你好!
我用vue-cli3初始化报错,错误内容如下:
Vue CLI v3.5.5
✨ Creating project in D:\zafProject\work-project\ts-demo\hello.
� Initializing git repository...
⚙ Installing CLI plugins. This might take a while...

'yarn'
ERROR command failed: yarn --registry=https://registry.npm.taobao.org --distur
l=https://npm.taobao.org/dist
错误图片链接:
https://user-gold-cdn.xitu.io/2019/4/2/169dc07f8b4cb17c?w=656&h=210&f=png&s=11301
请问怎样解决;

ERR_ACTION_ACCESS_UNDEFINED

index.js?6fc5:318 Uncaught (in promise) Error: ERR_ACTION_ACCESS_UNDEFINED: Are you trying to access this.someMutation() or this.someGetter inside an @action?
That works only in dynamic modules.
If not dynamic use this.context.commit("mutationName", payload) and this.context.getters[“getterName”]
Error: Could not perform action Login

qq 20181220102604
qq 20181220102623
qq 20181220102510

exports is not defined

安装依赖完成之后,启动项目显示已成功,但是访问项目路径的时候,浏览器的控制台输出 Uncaught ReferenceError: exports is not defined

更多的后台功能集成 (欢迎PR)

大家好,我们打算开始逐渐把更多的后台功能从原来的 vue-element-admin project 迁移到这个 typescript 的版本中, 我创建了一系列的 issues 用来更好的更新进度。 欢迎任何developer参与贡献👏 只需要开始接任务时在对应的 issue 里说一声 防止大家花时间做了重复工作, 感谢!🎉

使用路由懒加载后,打包部署到服务器,页面显示白屏

问题来源

使用了vue+ts的脚手架,在router/index.js中更改为路由懒加载的写法,npm run dev页面正常显示;npm run build打包后部署到服务器,首页白屏,无法正常显示,无报错信息。

验证的相关信息

ts项目增加路由懒加载后白屏
上面的脚手架中,将router/index.ts中的改成路由懒加载写法,并在config/index,build下的assetsPublicPath,由/改为./后即可验证
作者大大,我看你项目中使用了路由懒加载,请教下上面的问题。。。。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.